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