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