public class ShouldHaveRootCauseInstance extends BasicErrorMessageFactory
Throwable
have a root cause
instance of a certain type.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldHaveRootCauseInstance(Throwable actual,
Class<? extends Throwable> expectedCauseType)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldHaveRootCauseInstance(Throwable actual, Class<? extends Throwable> expectedCauseType)
BasicErrorMessageFactory
.actual
- the actual value in the failed assertion.expectedCauseType
- the expected cause type.ErrorMessageFactory
.Copyright © 2013–2018 AssertJ. All rights reserved.