Package | Description |
---|---|
org.assertj.core.error |
Modifier and Type | Method and Description |
---|---|
static OptionalShouldContain |
OptionalShouldContain.shouldContain(Object expectedValue)
Indicates that an
Optional is empty so it doesn't contain the expected value. |
static <VALUE> OptionalShouldContain |
OptionalShouldContain.shouldContain(Optional<VALUE> optional,
VALUE expectedValue)
Indicates that the provided
Optional does not contain the provided argument. |
static OptionalShouldContain |
OptionalShouldContain.shouldContain(OptionalDouble optional,
double expectedValue)
Indicates that the provided
OptionalDouble does not contain the provided argument. |
static OptionalShouldContain |
OptionalShouldContain.shouldContain(OptionalInt optional,
int expectedValue)
Indicates that the provided
OptionalInt does not contain the provided argument. |
static OptionalShouldContain |
OptionalShouldContain.shouldContain(OptionalLong optional,
long expectedValue)
Indicates that the provided
OptionalLong does not contain the provided argument. |
static <VALUE> OptionalShouldContain |
OptionalShouldContain.shouldContainSame(Optional<VALUE> optional,
VALUE expectedValue)
Indicates that the provided
Optional does not contain the provided argument (judging by reference
equality). |
Copyright © 2014–2019 AssertJ. All rights reserved.