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