Package org.assertj.core.error
Class OptionalShouldBePresent
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.OptionalShouldBePresent
- All Implemented Interfaces:
ErrorMessageFactory
Build error message when a value should be present in an
Optional.-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionalShouldBePresentshouldBePresent(Object optional) 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
-
OptionalShouldBePresent
-
-
Method Details
-
shouldBePresent
Indicates that a value should be present in an emptyOptional.- Parameters:
optional- the optional instance- Returns:
- a error message factory.
- Throws:
NullPointerException- if optional is null.
-