Interface BDDSoftAssertionsProvider
- All Superinterfaces:
AfterAssertionErrorCollected,AssertionErrorCollector,Java6BDDSoftAssertionsProvider,SoftAssertionsProvider
- All Known Implementing Classes:
AutoCloseableBDDSoftAssertions,BDDSoftAssertions,JUnitBDDSoftAssertions,JUnitJupiterBDDSoftAssertions
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.assertj.core.api.SoftAssertionsProvider
SoftAssertionsProvider.ThrowingRunnable -
Method Summary
Modifier and TypeMethodDescriptiondefault PathAssertCreates a new, proxied instance of aPathAssertdefault DurationAssertCreates a new instance of.DurationAssertdefault InstantAssertCreates a new instance of.InstantAssertdefault LocalDateAssertCreates a new instance of.LocalDateAssertdefault LocalDateTimeAssertthen(LocalDateTime actual) Creates a new instance of.LocalDateTimeAssertdefault LocalTimeAssertCreates a new instance of.LocalTimeAssertdefault OffsetDateTimeAssertthen(OffsetDateTime actual) Creates a new instance of.OffsetDateTimeAssertdefault OffsetTimeAssertthen(OffsetTime actual) Creates a new instance of.OffsetTimeAssertdefault PeriodAssertCreates a new instance of.PeriodAssertdefault YearMonthAssertCreates a new instance of.YearMonthAssertdefault ZonedDateTimeAssertthen(ZonedDateTime actual) Creates a new instance of.ZonedDateTimeAssertdefault LongAdderAssertCreate assertion forLongAdder.default <RESULT> CompletableFutureAssert<RESULT> then(CompletableFuture<RESULT> actual) Create assertion forCompletableFuture.default <RESULT> CompletableFutureAssert<RESULT> then(CompletionStage<RESULT> actual) Create assertion forCompletionStageby converting it to aCompletableFutureand returning aCompletableFutureAssert.default DoublePredicateAssertthen(DoublePredicate actual) Create assertion forDoublePredicate.default IntPredicateAssertthen(IntPredicate actual) Create assertion forIntPredicate.default LongPredicateAssertthen(LongPredicate actual) Create assertion forDoublePredicate.default <T> PredicateAssert<T> Create assertion forPredicate.default <VALUE> OptionalAssert<VALUE> Create assertion forOptional.default OptionalDoubleAssertthen(OptionalDouble actual) Create assertion forOptionalDouble.default OptionalIntAssertthen(OptionalInt actual) Create assertion forOptionalInt.default OptionalLongAssertthen(OptionalLong actual) Create assertion forOptionalLong.default MatcherAssertCreate assertion forMatcher.default <ELEMENT> SpliteratorAssert<ELEMENT> then(Spliterator<ELEMENT> actual) Creates a new instance offrom the givenSpliteratorAssertSpliterator.default AbstractListAssert<?, List<? extends Double>, Double, ObjectAssert<Double>> then(DoubleStream actual) Creates a new instance offrom the givenListAssertDoubleStream.default AbstractListAssert<?, List<? extends Integer>, Integer, ObjectAssert<Integer>> Creates a new instance offrom the givenListAssertIntStream.default AbstractListAssert<?, List<? extends Long>, Long, ObjectAssert<Long>> then(LongStream actual) Creates a new instance offrom the givenListAssertLongStream.default <ELEMENT> AbstractListAssert<?, List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> Creates a new instance offrom the givenListAssertStream.default AbstractPathAssert<?> Creates a new instance ofPathAssertdefault <T> PredicateAssert<T> thenPredicate(Predicate<T> actual) Create assertion forPredicate.default <ELEMENT> ListAssert<ELEMENT> thenStream(Stream<? extends ELEMENT> actual) Creates a new instance offrom the givenListAssertStream.default TemporalAssertthenTemporal(Temporal actual) Creates a new instance of.TemporalAssertMethods inherited from interface org.assertj.core.api.AssertionErrorCollector
assertionErrorsCollected, collectAssertionError, getDelegate, onAssertionErrorCollected, setDelegate, succeeded, wasSuccessMethods inherited from interface org.assertj.core.api.Java6BDDSoftAssertionsProvider
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, thenCharSequence, thenCode, thenCollection, thenComparable, thenException, thenExceptionOfType, thenIllegalArgumentException, thenIllegalStateException, thenIndexOutOfBoundsException, thenIOException, thenIterable, thenIterator, thenList, thenNullPointerException, thenObject, thenReflectiveOperationException, thenRuntimeException, thenThrownBy, thenThrownByMethods inherited from interface org.assertj.core.api.SoftAssertionsProvider
assertAll, assertAlso, check, proxy
-
Method Details
-
then
Creates a new, proxied instance of aPathAssert- Parameters:
actual- the path- Returns:
- the created assertion object
-
thenPath
Creates a new instance ofPathAssertUse this over
then(Path)in case of ambiguous method resolution when the object under test implements several interfaces Assertj providesthenfor.- Parameters:
actual- the path to test- Returns:
- the created assertion object
- Since:
- 3.23.0
-
then
Create assertion forOptional.- Type Parameters:
VALUE- the type of the value contained in theOptional.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Create assertion forOptionalDouble.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Create assertion forOptionalInt.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Create assertion forOptionalLong.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Create assertion forMatcher.- Parameters:
actual- the actual matcher- Returns:
- the created assertion object.
-
thenTemporal
Creates a new instance of.TemporalAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.26.1
-
then
Creates a new instance of.LocalDateAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Creates a new instance of.YearMonthAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.26.0
-
then
Creates a new instance of.LocalDateTimeAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Creates a new instance of.ZonedDateTimeAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Creates a new instance of.LocalTimeAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Creates a new instance of.OffsetTimeAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Creates a new instance of.OffsetDateTimeAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Creates a new instance of.InstantAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.7.0
-
then
Creates a new instance of.DurationAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.15.0
-
then
Creates a new instance of.PeriodAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.17.0
-
then
Create assertion forCompletableFuture.- Type Parameters:
RESULT- the type of the value contained in theCompletableFuture.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Create assertion forCompletionStageby converting it to aCompletableFutureand returning aCompletableFutureAssert.If the given
CompletionStageis null, theCompletableFuturein the returnedCompletableFutureAssertwill also be null.- Type Parameters:
RESULT- the type of the value contained in theCompletionStage.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
then
Create assertion forPredicate.- Type Parameters:
T- the type of the value contained in thePredicate.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
thenPredicate
Create assertion forPredicate.Use this over
then(Predicate)in case of ambiguous method resolution when the object under test implements several interfaces Assertj providesthenfor.- Type Parameters:
T- the type of the value contained in thePredicate.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.23.0
-
then
Create assertion forIntPredicate.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
then
Create assertion forDoublePredicate.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
then
Create assertion forDoublePredicate.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
then
default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>, thenELEMENT, ObjectAssert<ELEMENT>> (Stream<? extends ELEMENT> actual) Creates a new instance offrom the givenListAssertStream.Be aware that to create the returned
ListAssertthe given theStreamis consumed so it won't be possible to use it again. Calling multiple methods on the returnedListAssertis safe as it only interacts with theListbuilt from theStream.- Type Parameters:
ELEMENT- the type of elements.- Parameters:
actual- the actualStreamvalue.- Returns:
- the created assertion object.
-
thenStream
Creates a new instance offrom the givenListAssertStream.Use this over
then(Stream)in case of ambiguous method resolution when the object under test implements several interfaces Assertj providesthenfor.Be aware that to create the returned
ListAssertthe given theStreamis consumed so it won't be possible to use it again. Calling multiple methods on the returnedListAssertis safe as it only interacts with theListbuilt from theStream.- Type Parameters:
ELEMENT- the type of elements.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.23.0
-
then
default AbstractListAssert<?,List<? extends Double>, thenDouble, ObjectAssert<Double>> (DoubleStream actual) Creates a new instance offrom the givenListAssertDoubleStream.Be aware that to create the returned
ListAssertthe given theDoubleStreamis consumed so it won't be possible to use it again. Calling multiple methods on the returnedListAssertis safe as it only interacts with theListbuilt from theDoubleStream.- Parameters:
actual- the actualDoubleStreamvalue.- Returns:
- the created assertion object.
-
then
Creates a new instance offrom the givenListAssertLongStream.Be aware that to create the returned
ListAssertthe given theLongStreamis consumed so it won't be possible to use it again. Calling multiple methods on the returnedListAssertis safe as it only interacts with theListbuilt from theLongStream.- Parameters:
actual- the actualLongStreamvalue.- Returns:
- the created assertion object.
-
then
default AbstractListAssert<?,List<? extends Integer>, thenInteger, ObjectAssert<Integer>> (IntStream actual) Creates a new instance offrom the givenListAssertIntStream.Be aware that to create the returned
ListAssertthe given theIntStreamis consumed so it won't be possible to use it again. Calling multiple methods on the returnedListAssertis safe as it only interacts with theListbuilt from theIntStream.- Parameters:
actual- the actualIntStreamvalue.- Returns:
- the created assertion object.
-
then
Creates a new instance offrom the givenSpliteratorAssertSpliterator.- Type Parameters:
ELEMENT- the type of elements.- Parameters:
actual- the actualSpliteratorvalue.- Returns:
- the created assertion object.
- Since:
- 3.14.0
-
then
Create assertion forLongAdder.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.16.0
-