public class ShouldHaveCauseExactlyInstance extends BasicErrorMessageFactory
Throwable
have a cause
exactly instance of a certain type.arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldHaveCauseExactlyInstance(java.lang.Class<? extends java.lang.Throwable> expectedCauseType) |
private |
ShouldHaveCauseExactlyInstance(java.lang.Throwable actual,
java.lang.Class<? extends java.lang.Throwable> expectedCauseType) |
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldHaveCauseExactlyInstance(java.lang.Throwable actual,
java.lang.Class<? extends java.lang.Throwable> expectedCauseType)
Creates a new
BasicErrorMessageFactory . |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldHaveCauseExactlyInstance(java.lang.Throwable actual, java.lang.Class<? extends java.lang.Throwable> expectedCauseType)
private ShouldHaveCauseExactlyInstance(java.lang.Class<? extends java.lang.Throwable> expectedCauseType)
public static ErrorMessageFactory shouldHaveCauseExactlyInstance(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 instance.ErrorMessageFactory
.