public interface BDDSoftAssertionsProvider extends Java6BDDSoftAssertionsProvider
SoftAssertionsProvider.ThrowingRunnable| Modifier and Type | Method and Description |
|---|---|
default <RESULT> CompletableFutureAssert<RESULT> |
then(CompletableFuture<RESULT> actual)
Create assertion for
CompletableFuture. |
default <RESULT> CompletableFutureAssert<RESULT> |
then(CompletionStage<RESULT> actual)
Create assertion for
CompletionStage by converting it to a CompletableFuture and returning a CompletableFutureAssert. |
default DoublePredicateAssert |
then(DoublePredicate actual)
Create assertion for
DoublePredicate. |
default AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> |
then(DoubleStream actual)
Creates a new instance of
from the given DoubleStream. |
default DurationAssert |
then(Duration actual)
Creates a new instance of
. |
default InstantAssert |
then(Instant actual)
Creates a new instance of
. |
default IntPredicateAssert |
then(IntPredicate actual)
Create assertion for
IntPredicate. |
default AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> |
then(IntStream actual)
Creates a new instance of
from the given IntStream. |
default LocalDateAssert |
then(LocalDate actual)
Creates a new instance of
. |
default LocalDateTimeAssert |
then(LocalDateTime actual)
Creates a new instance of
. |
default LocalTimeAssert |
then(LocalTime actual)
Creates a new instance of
. |
default LongAdderAssert |
then(LongAdder actual)
Create assertion for
LongAdder. |
default LongPredicateAssert |
then(LongPredicate actual)
Create assertion for
DoublePredicate. |
default AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> |
then(LongStream actual)
Creates a new instance of
from the given LongStream. |
default MatcherAssert |
then(Matcher actual)
Create assertion for
Matcher. |
default OffsetDateTimeAssert |
then(OffsetDateTime actual)
Creates a new instance of
. |
default OffsetTimeAssert |
then(OffsetTime actual)
Creates a new instance of
. |
default <VALUE> OptionalAssert<VALUE> |
then(Optional<VALUE> actual)
Create assertion for
Optional. |
default OptionalDoubleAssert |
then(OptionalDouble actual)
Create assertion for
OptionalDouble. |
default OptionalIntAssert |
then(OptionalInt actual)
Create assertion for
OptionalInt. |
default OptionalLongAssert |
then(OptionalLong actual)
Create assertion for
OptionalLong. |
default PathAssert |
then(Path actual)
Creates a new, proxied instance of a
PathAssert |
default PeriodAssert |
then(Period actual)
Creates a new instance of
. |
default <T> PredicateAssert<T> |
then(Predicate<T> actual)
Create assertion for
Predicate. |
default <ELEMENT> SpliteratorAssert<ELEMENT> |
then(Spliterator<ELEMENT> actual)
Creates a new instance of
from the given Spliterator. |
default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
then(Stream<? extends ELEMENT> actual)
Creates a new instance of
from the given Stream. |
default ZonedDateTimeAssert |
then(ZonedDateTime actual)
Creates a new instance of
. |
default AbstractPathAssert<?> |
thenPath(Path actual)
Creates a new instance of
PathAssert |
default <T> PredicateAssert<T> |
thenPredicate(Predicate<T> actual)
Create assertion for
Predicate. |
default <ELEMENT> ListAssert<ELEMENT> |
thenStream(Stream<? extends ELEMENT> actual)
Creates a new instance of
from the given Stream. |
then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, then, thenCode, thenCollection, thenComparable, thenException, thenExceptionOfType, thenIllegalArgumentException, thenIllegalStateException, thenIndexOutOfBoundsException, thenIOException, thenIterable, thenIterator, thenList, thenNullPointerException, thenObject, thenReflectiveOperationException, thenRuntimeException, thenThrownBy, thenThrownByassertAll, assertAlso, assertSoftly, check, proxyassertionErrorsCollected, collectAssertionError, getDelegate, onAssertionErrorCollected, setDelegate, succeeded, wasSuccessdefault PathAssert then(Path actual)
PathAssertactual - the pathdefault AbstractPathAssert<?> thenPath(Path actual)
PathAssert
Use this over then(Path) in case of ambiguous method resolution when the object under test
implements several interfaces Assertj provides then for.
actual - the path to testdefault <VALUE> OptionalAssert<VALUE> then(Optional<VALUE> actual)
Optional.VALUE - the type of the value contained in the Optional.actual - the actual value.default OptionalDoubleAssert then(OptionalDouble actual)
OptionalDouble.actual - the actual value.default OptionalIntAssert then(OptionalInt actual)
OptionalInt.actual - the actual value.default OptionalLongAssert then(OptionalLong actual)
OptionalLong.actual - the actual value.default MatcherAssert then(Matcher actual)
Matcher.actual - the actual matcherdefault LocalDateAssert then(LocalDate actual)
LocalDateAssert.actual - the actual value.default LocalDateTimeAssert then(LocalDateTime actual)
LocalDateTimeAssert.actual - the actual value.default ZonedDateTimeAssert then(ZonedDateTime actual)
ZonedDateTimeAssert.actual - the actual value.default LocalTimeAssert then(LocalTime actual)
LocalTimeAssert.actual - the actual value.default OffsetTimeAssert then(OffsetTime actual)
OffsetTimeAssert.actual - the actual value.default OffsetDateTimeAssert then(OffsetDateTime actual)
OffsetDateTimeAssert.actual - the actual value.default InstantAssert then(Instant actual)
InstantAssert.actual - the actual value.default DurationAssert then(Duration actual)
DurationAssert.actual - the actual value.default PeriodAssert then(Period actual)
PeriodAssert.actual - the actual value.default <RESULT> CompletableFutureAssert<RESULT> then(CompletableFuture<RESULT> actual)
CompletableFuture.RESULT - the type of the value contained in the CompletableFuture.actual - the actual value.default <RESULT> CompletableFutureAssert<RESULT> then(CompletionStage<RESULT> actual)
CompletionStage by converting it to a CompletableFuture and returning a CompletableFutureAssert.
If the given CompletionStage is null, the CompletableFuture in the returned CompletableFutureAssert will also be null.
RESULT - the type of the value contained in the CompletionStage.actual - the actual value.default <T> PredicateAssert<T> then(Predicate<T> actual)
Predicate.T - the type of the value contained in the Predicate.actual - the actual value.default <T> PredicateAssert<T> thenPredicate(Predicate<T> actual)
Predicate.
Use this over then(Predicate) in case of ambiguous method resolution when the object under test
implements several interfaces Assertj provides then for.
T - the type of the value contained in the Predicate.actual - the actual value.default IntPredicateAssert then(IntPredicate actual)
IntPredicate.actual - the actual value.default DoublePredicateAssert then(DoublePredicate actual)
DoublePredicate.actual - the actual value.default LongPredicateAssert then(LongPredicate actual)
DoublePredicate.actual - the actual value.default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> then(Stream<? extends ELEMENT> actual)
ListAssert from the given Stream.
Be aware that to create the returned ListAssert the given the Stream is consumed so it won't be
possible to use it again. Calling multiple methods on the returned ListAssert is safe as it only
interacts with the List built from the Stream.
ELEMENT - the type of elements.actual - the actual Stream value.default <ELEMENT> ListAssert<ELEMENT> thenStream(Stream<? extends ELEMENT> actual)
ListAssert from the given Stream.
Use this over then(Stream) in case of ambiguous method resolution when the object under test
implements several interfaces Assertj provides then for.
Be aware that to create the returned ListAssert the given the Stream is consumed so it won't be
possible to use it again. Calling multiple methods on the returned ListAssert is safe as it only
interacts with the List built from the Stream.
ELEMENT - the type of elements.actual - the actual value.default AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> then(DoubleStream actual)
ListAssert from the given DoubleStream.
Be aware that to create the returned ListAssert the given the DoubleStream is consumed so it won't be
possible to use it again. Calling multiple methods on the returned ListAssert is safe as it only
interacts with the List built from the DoubleStream.
actual - the actual DoubleStream value.default AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> then(LongStream actual)
ListAssert from the given LongStream.
Be aware that to create the returned ListAssert the given the LongStream is consumed so it won't be
possible to use it again. Calling multiple methods on the returned ListAssert is safe as it only
interacts with the List built from the LongStream.
actual - the actual LongStream value.default AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> then(IntStream actual)
ListAssert from the given IntStream.
Be aware that to create the returned ListAssert the given the IntStream is consumed so it won't be
possible to use it again. Calling multiple methods on the returned ListAssert is safe as it only
interacts with the List built from the IntStream.
actual - the actual IntStream value.default <ELEMENT> SpliteratorAssert<ELEMENT> then(Spliterator<ELEMENT> actual)
SpliteratorAssert from the given Spliterator.ELEMENT - the type of elements.actual - the actual Spliterator value.default LongAdderAssert then(LongAdder actual)
LongAdder.actual - the actual value.Copyright © 2025. All rights reserved.