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> OptionalShouldBeEmptyshouldBeEmpty(Optional<VALUE> optional) Indicates that the providedOptionalshould be empty.static OptionalShouldBeEmptyshouldBeEmpty(OptionalDouble optional) Indicates that the providedOptionalDoubleshould be empty.static OptionalShouldBeEmptyshouldBeEmpty(OptionalInt optional) Indicates that the providedOptionalIntshould be empty.static OptionalShouldBeEmptyshouldBeEmpty(OptionalLong optional) Indicates that the providedOptionalLongshould be empty.Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldBeEmpty
Indicates that the providedOptionalshould be empty. -
shouldBeEmpty
Indicates that the providedOptionalDoubleshould be empty.- Parameters:
optional- the actualOptionalDoubleto test.- Returns:
- a error message factory.
-
shouldBeEmpty
Indicates that the providedOptionalIntshould be empty.- Parameters:
optional- the actualOptionalIntto test.- Returns:
- a error message factory.
-
shouldBeEmpty
Indicates that the providedOptionalLongshould be empty.- Parameters:
optional- the actualOptionalLongto test.- Returns:
- a error message factory.
-