Package org.assertj.core.error
Class OptionalShouldBeEmpty
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.OptionalShouldBeEmpty
- All Implemented Interfaces:
ErrorMessageFactory
Build error message when an
Optional
should be empty.- Author:
- Jean-Christophe Gay
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic <VALUE> OptionalShouldBeEmpty
shouldBeEmpty
(Optional<VALUE> optional) Indicates that the providedOptional
should be empty.static OptionalShouldBeEmpty
shouldBeEmpty
(OptionalDouble optional) Indicates that the providedOptionalDouble
should be empty.static OptionalShouldBeEmpty
shouldBeEmpty
(OptionalInt optional) Indicates that the providedOptionalInt
should be empty.static OptionalShouldBeEmpty
shouldBeEmpty
(OptionalLong optional) Indicates that the providedOptionalLong
should be empty.Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldBeEmpty
Indicates that the providedOptional
should be empty. -
shouldBeEmpty
Indicates that the providedOptionalDouble
should be empty.- Parameters:
optional
- the actualOptionalDouble
to test.- Returns:
- a error message factory.
-
shouldBeEmpty
Indicates that the providedOptionalInt
should be empty.- Parameters:
optional
- the actualOptionalInt
to test.- Returns:
- a error message factory.
-
shouldBeEmpty
Indicates that the providedOptionalLong
should be empty.- Parameters:
optional
- the actualOptionalLong
to test.- Returns:
- a error message factory.
-