public class ShouldBeInstance extends BasicErrorMessageFactory
arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldBeInstance(java.lang.Object object,
java.lang.Class<?> type)
Creates a new
ShouldBeInstance . |
static ErrorMessageFactory |
shouldBeInstanceButWasNull(java.lang.String objectDescription,
java.lang.Class<?> type)
Creates a new
ShouldBeInstance when object we want to check type is null. |
create, equals, hashCode, toString
public static ErrorMessageFactory shouldBeInstance(java.lang.Object object, java.lang.Class<?> type)
ShouldBeInstance
.object
- the object value in the failed assertion.type
- the type object
is expected to belong to.ErrorMessageFactory
.public static ErrorMessageFactory shouldBeInstanceButWasNull(java.lang.String objectDescription, java.lang.Class<?> type)
ShouldBeInstance
when object we want to check type is null.objectDescription
- the description of the null object we wanted to check type.type
- the expected type.ErrorMessageFactory
.Copyright © 2007–2018. All rights reserved.