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
.- Author:
- Jean-Christophe Gay
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic OptionalShouldBePresent
shouldBePresent
(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
-
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.
-