Optional, OptionalDouble, OptionalInt or OptionalLong
should contain a specific value.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of the value contained in the VALUE> OptionalShouldContainjava.. | Returns: a error message factorythe optional, VALUE java. which contains a value.the value we expect to be in the provided expectedValue)java..Indicates that the provided |
| public static OptionalShouldContain | Returns: a error message factorythe optional, double java. which contains a value.the value we expect to be in the provided expectedValue)java..Indicates that the provided |
| public static OptionalShouldContain | Returns: a error message factorythe optional, int java. which contains a value.the value we expect to be in the provided expectedValue)java..Indicates that the provided |
| public static OptionalShouldContain | Returns: a error message factorythe optional, long java. which contains a value.the value we expect to be in the provided expectedValue)java..Indicates that the provided |
| public static OptionalShouldContain | Returns: a error message factory.the value we expect to be in an expectedValue)java..Indicates that an |
| public static < the type of the value contained in the VALUE> OptionalShouldContainjava.. | Returns: a error message factorythe optional, VALUE java. which contains a value.the value we expect to be in the provided expectedValue)java..Indicates that the provided |
| EXPECTING_TO_CONTAIN | back to summary |
|---|---|
| private static final String EXPECTING_TO_CONTAIN | |
| EXPECTING_TO_CONTAIN_SAME | back to summary |
|---|---|
| private static final String EXPECTING_TO_CONTAIN_SAME | |
| OptionalShouldContain | back to summary |
|---|---|
| private OptionalShouldContain(String message, Object actual, Object expected) | |
| OptionalShouldContain | back to summary |
|---|---|
| private OptionalShouldContain(Object expected) | |
| shouldContain | back to summary |
|---|---|
| public static <VALUE> OptionalShouldContain shouldContain(Optional<VALUE> optional, VALUE expectedValue) Indicates that the provided
| |
| shouldContain | back to summary |
|---|---|
| public static OptionalShouldContain shouldContain(OptionalDouble optional, double expectedValue) Indicates that the provided
| |
| shouldContain | back to summary |
|---|---|
| public static OptionalShouldContain shouldContain(OptionalInt optional, int expectedValue) Indicates that the provided
| |
| shouldContain | back to summary |
|---|---|
| public static OptionalShouldContain shouldContain(OptionalLong optional, long expectedValue) Indicates that the provided
| |
| shouldContain | back to summary |
|---|---|
| public static OptionalShouldContain shouldContain(Object expectedValue) Indicates that an
| |
| shouldContainSame | back to summary |
|---|---|
| public static <VALUE> OptionalShouldContain shouldContainSame(Optional<VALUE> optional, VALUE expectedValue) Indicates that the provided
| |