Package org.assertj.core.error
Class OptionalShouldBePresent
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.OptionalShouldBePresent
-
- All Implemented Interfaces:
ErrorMessageFactory
public class OptionalShouldBePresent extends BasicErrorMessageFactory
Build error message when a value should be present in anOptional
.- Author:
- Jean-Christophe Gay
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
OptionalShouldBePresent(Object optional)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
-
-
-
-
Constructor Detail
-
OptionalShouldBePresent
private OptionalShouldBePresent(Object optional)
-
-
Method Detail
-
shouldBePresent
public static OptionalShouldBePresent shouldBePresent(Object optional)
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.
-
-