Package org.assertj.core.error
Class OptionalShouldBeEmpty
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.OptionalShouldBeEmpty
-
- All Implemented Interfaces:
ErrorMessageFactory
public class OptionalShouldBeEmpty extends BasicErrorMessageFactory
Build error message when anOptional
should be empty.- 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
OptionalShouldBeEmpty(Class<?> optionalClass, Object optionalValue)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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 Detail
-
shouldBeEmpty
public static <VALUE> OptionalShouldBeEmpty shouldBeEmpty(Optional<VALUE> optional)
Indicates that the providedOptional
should be empty.
-
shouldBeEmpty
public static OptionalShouldBeEmpty shouldBeEmpty(OptionalDouble optional)
Indicates that the providedOptionalDouble
should be empty.- Parameters:
optional
- the actualOptionalDouble
to test.- Returns:
- a error message factory.
-
shouldBeEmpty
public static OptionalShouldBeEmpty shouldBeEmpty(OptionalInt optional)
Indicates that the providedOptionalInt
should be empty.- Parameters:
optional
- the actualOptionalInt
to test.- Returns:
- a error message factory.
-
shouldBeEmpty
public static OptionalShouldBeEmpty shouldBeEmpty(OptionalLong optional)
Indicates that the providedOptionalLong
should be empty.- Parameters:
optional
- the actualOptionalLong
to test.- Returns:
- a error message factory.
-
-