Package org.assertj.core.api
Class AbstractBDDSoftAssertions
- java.lang.Object
-
- org.assertj.core.api.AbstractSoftAssertions
-
- org.assertj.core.api.Java6AbstractBDDSoftAssertions
-
- org.assertj.core.api.AbstractBDDSoftAssertions
-
- Direct Known Subclasses:
BDDSoftAssertions
,JUnitBDDSoftAssertions
public abstract class AbstractBDDSoftAssertions extends Java6AbstractBDDSoftAssertions
-
-
Field Summary
-
Fields inherited from class org.assertj.core.api.AbstractSoftAssertions
proxies
-
-
Constructor Summary
Constructors Constructor Description AbstractBDDSoftAssertions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathAssert
then(java.nio.file.Path actual)
Creates a new, proxied instance of aPathAssert
InstantAssert
then(java.time.Instant actual)
Creates a new instance of
.InstantAssert
LocalDateAssert
then(java.time.LocalDate actual)
Creates a new instance of
.LocalDateAssert
LocalDateTimeAssert
then(java.time.LocalDateTime actual)
Creates a new instance of
.LocalDateTimeAssert
LocalTimeAssert
then(java.time.LocalTime actual)
Creates a new instance of
.LocalTimeAssert
OffsetDateTimeAssert
then(java.time.OffsetDateTime actual)
Creates a new instance of
.OffsetDateTimeAssert
OffsetTimeAssert
then(java.time.OffsetTime actual)
Creates a new instance of
.OffsetTimeAssert
ZonedDateTimeAssert
then(java.time.ZonedDateTime actual)
Creates a new instance of
.ZonedDateTimeAssert
<RESULT> CompletableFutureAssert<RESULT>
then(java.util.concurrent.CompletableFuture<RESULT> actual)
Create assertion forCompletableFuture
.DoublePredicateAssert
then(java.util.function.DoublePredicate actual)
Create assertion forDoublePredicate
.IntPredicateAssert
then(java.util.function.IntPredicate actual)
Create assertion forIntPredicate
.LongPredicateAssert
then(java.util.function.LongPredicate actual)
Create assertion forDoublePredicate
.<T> SoftAssertionPredicateAssert<T>
then(java.util.function.Predicate<T> actual)
Create assertion forPredicate
.<VALUE> OptionalAssert<VALUE>
then(java.util.Optional<VALUE> actual)
Create assertion forOptional
.OptionalDoubleAssert
then(java.util.OptionalDouble actual)
Create assertion forOptionalDouble
.OptionalIntAssert
then(java.util.OptionalInt actual)
Create assertion forOptionalInt
.OptionalLongAssert
then(java.util.OptionalLong actual)
Create assertion forOptionalLong
.<ELEMENT,STREAM extends java.util.stream.BaseStream<ELEMENT,STREAM>>
ListAssert<ELEMENT>then(java.util.stream.BaseStream<? extends ELEMENT,STREAM> actual)
Creates a new instance of
from the givenListAssert
BaseStream
.-
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, thenCode, thenThrownBy
-
Methods inherited from class org.assertj.core.api.AbstractSoftAssertions
errorsCollected, fail, fail, fail, failBecauseExceptionWasNotThrown, proxy, shouldHaveThrown, wasSuccess
-
-
-
-
Method Detail
-
then
public PathAssert then(java.nio.file.Path actual)
Creates a new, proxied instance of aPathAssert
- Parameters:
actual
- the path- Returns:
- the created assertion object
-
then
public <VALUE> OptionalAssert<VALUE> then(java.util.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(java.util.OptionalDouble actual)
Create assertion forOptionalDouble
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public OptionalIntAssert then(java.util.OptionalInt actual)
Create assertion forOptionalInt
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public OptionalLongAssert then(java.util.OptionalLong actual)
Create assertion forOptionalLong
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public LocalDateAssert then(java.time.LocalDate actual)
Creates a new instance of
.LocalDateAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public LocalDateTimeAssert then(java.time.LocalDateTime actual)
Creates a new instance of
.LocalDateTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public ZonedDateTimeAssert then(java.time.ZonedDateTime actual)
Creates a new instance of
.ZonedDateTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public LocalTimeAssert then(java.time.LocalTime actual)
Creates a new instance of
.LocalTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public OffsetTimeAssert then(java.time.OffsetTime actual)
Creates a new instance of
.OffsetTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public OffsetDateTimeAssert then(java.time.OffsetDateTime actual)
Creates a new instance of
.OffsetDateTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
then
public InstantAssert then(java.time.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(java.util.concurrent.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 <T> SoftAssertionPredicateAssert<T> then(java.util.function.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(java.util.function.IntPredicate actual)
Create assertion forIntPredicate
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
then
public DoublePredicateAssert then(java.util.function.DoublePredicate actual)
Create assertion forDoublePredicate
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
then
public LongPredicateAssert then(java.util.function.LongPredicate actual)
Create assertion forDoublePredicate
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
then
public <ELEMENT,STREAM extends java.util.stream.BaseStream<ELEMENT,STREAM>> ListAssert<ELEMENT> then(java.util.stream.BaseStream<? extends ELEMENT,STREAM> actual)
Creates a new instance of
from the givenListAssert
BaseStream
.Be aware that to create the returned
ListAssert
the given theBaseStream
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 theBaseStream
.This method accepts
Stream
and primitive stream variantsIntStream
,LongStream
andDoubleStream
.- Parameters:
actual
- the actualBaseStream
value.- Returns:
- the created assertion object.
-
-