Package org.assertj.core.error
Class OptionalShouldContainInstanceOf
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.OptionalShouldContainInstanceOf
- All Implemented Interfaces:
ErrorMessageFactory
Build an error message when a value should be instance of a specific class.
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshouldContainInstanceOf
(Object value, Class<?> clazz) Indicates that a value should be present in an emptyOptional
.Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Constructor Details
-
OptionalShouldContainInstanceOf
-
-
Method Details
-
shouldContainInstanceOf
Indicates that a value should be present in an emptyOptional
.- Parameters:
value
- Optional to be checked.clazz
- the class to check the optional value against- Returns:
- an error message factory.
- Throws:
NullPointerException
- if optional is null.
-