public class ShouldBeInstance extends BasicErrorMessageFactory
arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldBeInstance(Object object,
Class<?> type)
Creates a new
ShouldBeInstance. |
static ErrorMessageFactory |
shouldBeInstanceButWasNull(String objectDescription,
Class<?> type)
Creates a new
ShouldBeInstance when object we want to check type is null. |
create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldBeInstance(Object object, Class<?> type)
ShouldBeInstance.object - the object value in the failed assertion.type - the type object is \nExpecting:\n to belong to.ErrorMessageFactory.public static ErrorMessageFactory shouldBeInstanceButWasNull(String objectDescription, 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 \nExpecting:\n type.ErrorMessageFactory.Copyright © 2013-2014 AssertJ. All Rights Reserved.