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
BasicErrorMessageFactory. |
create, create, create, equals, hashCode, toString, unquotedStringpublic 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 © 2014–2016 AssertJ. All rights reserved.