public interface StandardSoftAssertionsProvider extends Java6StandardSoftAssertionsProvider
SoftAssertionsProvider.ThrowingRunnable| Modifier and Type | Method and Description |
|---|---|
default <RESULT> CompletableFutureAssert<RESULT> |
assertThat(CompletableFuture<RESULT> actual)
Create assertion for
CompletableFuture. |
default <RESULT> CompletableFutureAssert<RESULT> |
assertThat(CompletionStage<RESULT> actual)
Create assertion for
CompletionStage by converting it to a CompletableFuture and returning a CompletableFutureAssert. |
default DoublePredicateAssert |
assertThat(DoublePredicate actual)
Create assertion for
DoublePredicate. |
default AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> |
assertThat(DoubleStream actual)
Creates a new instance of
from the given DoubleStream. |
default DurationAssert |
assertThat(Duration actual)
Creates a new instance of
. |
default InstantAssert |
assertThat(Instant actual)
Creates a new instance of
. |
default IntPredicateAssert |
assertThat(IntPredicate actual)
Create assertion for
IntPredicate. |
default AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> |
assertThat(IntStream actual)
Creates a new instance of
from the given IntStream. |
default LocalDateAssert |
assertThat(LocalDate actual)
Creates a new instance of
. |
default LocalDateTimeAssert |
assertThat(LocalDateTime actual)
Creates a new instance of
. |
default LocalTimeAssert |
assertThat(LocalTime actual)
Creates a new instance of
. |
default LongAdderAssert |
assertThat(LongAdder actual)
Create assertion for
LongAdder. |
default LongPredicateAssert |
assertThat(LongPredicate actual)
Create assertion for
DoublePredicate. |
default AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> |
assertThat(LongStream actual)
Creates a new instance of
from the given LongStream. |
default MatcherAssert |
assertThat(Matcher actual)
Create assertion for
Matcher |
default OffsetDateTimeAssert |
assertThat(OffsetDateTime actual)
Creates a new instance of
. |
default OffsetTimeAssert |
assertThat(OffsetTime actual)
Creates a new instance of
. |
default <VALUE> OptionalAssert<VALUE> |
assertThat(Optional<VALUE> actual)
Create assertion for
Optional. |
default OptionalDoubleAssert |
assertThat(OptionalDouble actual)
Create assertion for
OptionalDouble. |
default OptionalIntAssert |
assertThat(OptionalInt actual)
Create assertion for
OptionalInt. |
default OptionalLongAssert |
assertThat(OptionalLong actual)
Create assertion for
OptionalLong. |
default PathAssert |
assertThat(Path actual)
Creates a new, proxied instance of a
PathAssert |
default PeriodAssert |
assertThat(Period actual)
Creates a new instance of
. |
default <T> PredicateAssert<T> |
assertThat(Predicate<T> actual)
Create assertion for
Predicate. |
default <ELEMENT> SpliteratorAssert<ELEMENT> |
assertThat(Spliterator<ELEMENT> actual)
Creates a new instance of
from the given Spliterator. |
default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
assertThat(Stream<? extends ELEMENT> actual)
Creates a new instance of
from the given Stream. |
default ZonedDateTimeAssert |
assertThat(ZonedDateTime actual)
Creates a new instance of
. |
default AbstractPathAssert<?> |
assertThatPath(Path actual)
Creates a new, proxied instance of a
PathAssert |
default <T> PredicateAssert<T> |
assertThatPredicate(Predicate<T> actual)
Create assertion for
Predicate. |
default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
assertThatStream(Stream<? extends ELEMENT> actual)
Creates a new instance of
from the given Stream. |
assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThatCode, assertThatCollection, assertThatComparable, assertThatException, assertThatExceptionOfType, assertThatIllegalArgumentException, assertThatIllegalStateException, assertThatIndexOutOfBoundsException, assertThatIOException, assertThatIterable, assertThatIterator, assertThatList, assertThatNullPointerException, assertThatObject, assertThatReflectiveOperationException, assertThatRuntimeException, assertThatThrownBy, assertThatThrownByassertAll, assertAlso, assertSoftly, check, proxyassertionErrorsCollected, collectAssertionError, getDelegate, onAssertionErrorCollected, setDelegate, succeeded, wasSuccessdefault PathAssert assertThat(Path actual)
PathAssertactual - the pathdefault AbstractPathAssert<?> assertThatPath(Path actual)
PathAssert
Use this over assertThat(Path) in case of ambiguous method resolution when the object under test
implements several interfaces Assertj provides assertThat for.
actual - the path to testdefault <VALUE> OptionalAssert<VALUE> assertThat(Optional<VALUE> actual)
Optional.VALUE - the type of the value contained in the Optional.actual - the actual value.default OptionalDoubleAssert assertThat(OptionalDouble actual)
OptionalDouble.actual - the actual value.default OptionalLongAssert assertThat(OptionalLong actual)
OptionalLong.actual - the actual value.default MatcherAssert assertThat(Matcher actual)
Matcheractual - the actual matcherdefault OptionalIntAssert assertThat(OptionalInt actual)
OptionalInt.actual - the actual value.default LocalDateAssert assertThat(LocalDate actual)
LocalDateAssert.actual - the actual value.default LocalDateTimeAssert assertThat(LocalDateTime actual)
LocalDateTimeAssert.actual - the actual value.default ZonedDateTimeAssert assertThat(ZonedDateTime actual)
ZonedDateTimeAssert.actual - the actual value.default LocalTimeAssert assertThat(LocalTime actual)
LocalTimeAssert.actual - the actual value.default OffsetTimeAssert assertThat(OffsetTime actual)
OffsetTimeAssert.actual - the actual value.default OffsetDateTimeAssert assertThat(OffsetDateTime actual)
OffsetDateTimeAssert.actual - the actual value.default InstantAssert assertThat(Instant actual)
InstantAssert.actual - the actual value.default DurationAssert assertThat(Duration actual)
DurationAssert.actual - the actual value.default PeriodAssert assertThat(Period actual)
PeriodAssert.actual - the actual value.default <RESULT> CompletableFutureAssert<RESULT> assertThat(CompletableFuture<RESULT> actual)
CompletableFuture.RESULT - the type of the value contained in the CompletableFuture.actual - the actual value.default <RESULT> CompletableFutureAssert<RESULT> assertThat(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> assertThat(Predicate<T> actual)
Predicate.T - the type of the value contained in the Predicate.actual - the actual value.default <T> PredicateAssert<T> assertThatPredicate(Predicate<T> actual)
Predicate.
Use this over Java6StandardSoftAssertionsProvider.assertThat(Iterable) in case of ambiguous method resolution when the object under test
implements several interfaces Assertj provides assertThat for.
T - the type of the value contained in the Predicate.actual - the actual value.default IntPredicateAssert assertThat(IntPredicate actual)
IntPredicate.actual - the actual value.default DoublePredicateAssert assertThat(DoublePredicate actual)
DoublePredicate.actual - the actual value.default LongPredicateAssert assertThat(LongPredicate actual)
DoublePredicate.actual - the actual value.default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> assertThat(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> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> assertThatStream(Stream<? extends ELEMENT> actual)
ListAssert from the given Stream.
Use this over assertThat(Stream) in case of ambiguous method resolution when the object under test
implements several interfaces Assertj provides assertThat 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>> assertThat(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>> assertThat(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>> assertThat(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> assertThat(Spliterator<ELEMENT> actual)
SpliteratorAssert from the given Spliterator.ELEMENT - the type of elements.actual - the actual Spliterator value.default LongAdderAssert assertThat(LongAdder actual)
LongAdder.actual - the actual value.Copyright © 2025. All rights reserved.