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