Class AbstractBDDSoftAssertions
- java.lang.Object
-
- org.assertj.core.api.AbstractSoftAssertions
-
- org.assertj.core.api.Java6AbstractBDDSoftAssertions
-
- org.assertj.core.api.AbstractBDDSoftAssertions
-
- All Implemented Interfaces:
InstanceOfAssertFactories
- Direct Known Subclasses:
BDDSoftAssertions
,JUnitBDDSoftAssertions
,JUnitJupiterBDDSoftAssertions
public abstract class AbstractBDDSoftAssertions extends Java6AbstractBDDSoftAssertions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.assertj.core.api.AbstractSoftAssertions
AbstractSoftAssertions.ThrowingRunnable
-
-
Field Summary
-
Fields inherited from class org.assertj.core.api.AbstractSoftAssertions
proxies
-
Fields inherited from interface org.assertj.core.api.InstanceOfAssertFactories
ARRAY, ATOMIC_BOOLEAN, ATOMIC_INTEGER, ATOMIC_INTEGER_ARRAY, ATOMIC_INTEGER_FIELD_UPDATER, ATOMIC_LONG, ATOMIC_LONG_ARRAY, ATOMIC_LONG_FIELD_UPDATER, ATOMIC_MARKABLE_REFERENCE, ATOMIC_REFERENCE, ATOMIC_REFERENCE_ARRAY, ATOMIC_REFERENCE_FIELD_UPDATER, ATOMIC_STAMPED_REFERENCE, BIG_DECIMAL, BIG_INTEGER, BOOLEAN, BOOLEAN_ARRAY, BYTE, BYTE_ARRAY, CHAR_ARRAY, CHAR_SEQUENCE, CHARACTER, CLASS, COMPLETABLE_FUTURE, COMPLETION_STAGE, DATE, DOUBLE, DOUBLE_ARRAY, DOUBLE_PREDICATE, DOUBLE_STREAM, FILE, FLOAT, FLOAT_ARRAY, FUTURE, INPUT_STREAM, INSTANT, INT_ARRAY, INT_PREDICATE, INT_STREAM, INTEGER, ITERABLE, ITERATOR, LIST, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, LONG, LONG_ARRAY, LONG_PREDICATE, LONG_STREAM, MAP, OFFSET_DATE_TIME, OFFSET_TIME, OPTIONAL, OPTIONAL_DOUBLE, OPTIONAL_INT, OPTIONAL_LONG, PATH, PREDICATE, SHORT, SHORT_ARRAY, SPLITERATOR, STREAM, STRING, STRING_BUFFER, STRING_BUILDER, THROWABLE, URI_TYPE, URL_TYPE, ZONED_DATE_TIME
-
-
Constructor Summary
Constructors Constructor Description AbstractBDDSoftAssertions()
-
Method Summary
-
Methods inherited from class org.assertj.core.api.Java6AbstractBDDSoftAssertions
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, thenObject, thenThrownBy, thenThrownBy
-
Methods inherited from class org.assertj.core.api.AbstractSoftAssertions
check, decorateErrorsCollected, errorsCollected, fail, fail, fail, failBecauseExceptionWasNotThrown, proxy, shouldHaveThrown, wasSuccess
-
-
-
-
Method Detail
-
then
public PathAssert then(Path actual)
Creates a new, proxied instance of aPathAssert
- Parameters:
actual
- the path- Returns:
- the created assertion object
-
then
public <VALUE> OptionalAssert<VALUE> then(Optional<VALUE> actual)
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
public OptionalDoubleAssert then(OptionalDouble actual)
Create assertion forOptionalDouble
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public OptionalIntAssert then(OptionalInt actual)
Create assertion forOptionalInt
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public OptionalLongAssert then(OptionalLong actual)
Create assertion forOptionalLong
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public LocalDateAssert then(LocalDate actual)
Creates a new instance of
.LocalDateAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public LocalDateTimeAssert then(LocalDateTime actual)
Creates a new instance of
.LocalDateTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public ZonedDateTimeAssert then(ZonedDateTime actual)
Creates a new instance of
.ZonedDateTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public LocalTimeAssert then(LocalTime actual)
Creates a new instance of
.LocalTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public OffsetTimeAssert then(OffsetTime actual)
Creates a new instance of
.OffsetTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public OffsetDateTimeAssert then(OffsetDateTime actual)
Creates a new instance of
.OffsetDateTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public InstantAssert then(Instant actual)
Creates a new instance of
.InstantAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.7.0
-
then
public <RESULT> CompletableFutureAssert<RESULT> then(CompletableFuture<RESULT> actual)
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
public <RESULT> CompletableFutureAssert<RESULT> then(CompletionStage<RESULT> actual)
Create assertion forCompletionStage
by converting it to aCompletableFuture
and returning aCompletableFutureAssert
.If the given
CompletionStage
is null, theCompletableFuture
in the returnedCompletableFutureAssert
will 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
public <T> ProxyablePredicateAssert<T> then(Predicate<T> actual)
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
-
then
public IntPredicateAssert then(IntPredicate actual)
Create assertion forIntPredicate
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
then
public DoublePredicateAssert then(DoublePredicate actual)
Create assertion forDoublePredicate
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
then
public LongPredicateAssert then(LongPredicate actual)
Create assertion forDoublePredicate
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
then
public <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> then(Stream<? extends ELEMENT> actual)
Creates a new instance of
from the givenListAssert
Stream
.Be aware that to create the returned
ListAssert
the given theStream
is consumed so it won't be possible to use it again. Calling multiple methods on the returnedListAssert
is safe as it only interacts with theList
built from theStream
.- Type Parameters:
ELEMENT
- the type of elements.- Parameters:
actual
- the actualStream
value.- Returns:
- the created assertion object.
-
then
public AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> then(DoubleStream actual)
Creates a new instance of
from the givenListAssert
DoubleStream
.Be aware that to create the returned
ListAssert
the given theDoubleStream
is consumed so it won't be possible to use it again. Calling multiple methods on the returnedListAssert
is safe as it only interacts with theList
built from theDoubleStream
.- Parameters:
actual
- the actualDoubleStream
value.- Returns:
- the created assertion object.
-
then
public AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> then(LongStream actual)
Creates a new instance of
from the givenListAssert
LongStream
.Be aware that to create the returned
ListAssert
the given theLongStream
is consumed so it won't be possible to use it again. Calling multiple methods on the returnedListAssert
is safe as it only interacts with theList
built from theLongStream
.- Parameters:
actual
- the actualLongStream
value.- Returns:
- the created assertion object.
-
then
public AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> then(IntStream actual)
Creates a new instance of
from the givenListAssert
IntStream
.Be aware that to create the returned
ListAssert
the given theIntStream
is consumed so it won't be possible to use it again. Calling multiple methods on the returnedListAssert
is safe as it only interacts with theList
built from theIntStream
.- Parameters:
actual
- the actualIntStream
value.- Returns:
- the created assertion object.
-
then
public <ELEMENT> SpliteratorAssert<ELEMENT> then(Spliterator<ELEMENT> actual)
Creates a new instance of
from the givenSpliteratorAssert
Spliterator
.- Type Parameters:
ELEMENT
- the type of elements.- Parameters:
actual
- the actualSpliterator
value.- Returns:
- the created assertion object.
-
-