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