public class ShouldNotBeInstance extends BasicErrorMessageFactory
arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldNotBeInstance(java.lang.Object actual,
java.lang.Class<?> type) |
private |
ShouldNotBeInstance(java.lang.Throwable throwable,
java.lang.Class<?> type) |
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldNotBeInstance(java.lang.Object actual,
java.lang.Class<?> type)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldNotBeInstance(java.lang.Object actual, java.lang.Class<?> type)
private ShouldNotBeInstance(java.lang.Throwable throwable, java.lang.Class<?> type)
public static ErrorMessageFactory shouldNotBeInstance(java.lang.Object actual, java.lang.Class<?> type)
ShouldNotBeInstance
.actual
- the actual value in the failed assertion.type
- the type actual
is expected to belong to.ErrorMessageFactory
.