public class ShouldHaveCauseInstance extends BasicErrorMessageFactory
Throwable
have a cause instance of
a certain type.arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldHaveCauseInstance(java.lang.Class<? extends java.lang.Throwable> expectedCauseType) |
private |
ShouldHaveCauseInstance(java.lang.Throwable actual,
java.lang.Class<? extends java.lang.Throwable> expectedCauseType) |
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldHaveCauseInstance(java.lang.Throwable actual,
java.lang.Class<? extends java.lang.Throwable> expectedCauseType)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldHaveCauseInstance(java.lang.Throwable actual, java.lang.Class<? extends java.lang.Throwable> expectedCauseType)
private ShouldHaveCauseInstance(java.lang.Class<? extends java.lang.Throwable> expectedCauseType)
public static ErrorMessageFactory shouldHaveCauseInstance(java.lang.Throwable actual, java.lang.Class<? extends java.lang.Throwable> expectedCauseType)
BasicErrorMessageFactory
.actual
- the actual value in the failed assertion.expectedCauseType
- the expected cause type.ErrorMessageFactory
.