public class ShouldBeInstance extends BasicErrorMessageFactory
arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldBeInstance(Object object,
Class<?> type)
Creates a new
. |
static ErrorMessageFactory |
shouldBeInstanceButWasNull(String objectDescription,
Class<?> type)
Creates a new
when object we want to check type is null. |
create, create, create, equals, hashCode, toString, unquotedString
public 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 © 2014–2019 AssertJ. All rights reserved.