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
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractSoftAssertions
proxies -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new, proxied instance of aPathAssertCreates a new instance of.InstantAssertCreates a new instance of.LocalDateAssertthen(LocalDateTime actual) Creates a new instance of.LocalDateTimeAssertCreates a new instance of.LocalTimeAssertthen(OffsetDateTime actual) Creates a new instance of.OffsetDateTimeAssertthen(OffsetTime actual) Creates a new instance of.OffsetTimeAssertthen(ZonedDateTime actual) Creates a new instance of.ZonedDateTimeAssert<RESULT> CompletableFutureAssert<RESULT>then(CompletableFuture<RESULT> actual) Create assertion forCompletableFuture.then(DoublePredicate actual) Create assertion forDoublePredicate.then(IntPredicate actual) Create assertion forIntPredicate.then(LongPredicate actual) Create assertion forDoublePredicate.<T> SoftAssertionPredicateAssert<T>Create assertion forPredicate.<VALUE> OptionalAssert<VALUE>Create assertion forOptional.then(OptionalDouble actual) Create assertion forOptionalDouble.then(OptionalInt actual) Create assertion forOptionalInt.then(OptionalLong actual) Create assertion forOptionalLong.<ELEMENT,STREAM extends BaseStream<ELEMENT, STREAM>>
ListAssert<ELEMENT>then(BaseStream<? extends ELEMENT, STREAM> actual) Creates a new instance offrom the givenListAssertBaseStream.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, thenThrownByMethods inherited from class org.assertj.core.api.AbstractSoftAssertions
errorsCollected, fail, fail, fail, failBecauseExceptionWasNotThrown, proxy, shouldHaveThrown, wasSuccess
-
Constructor Details
-
AbstractBDDSoftAssertions
public AbstractBDDSoftAssertions()
-
-
Method Details
-
then
Creates a new, proxied instance of aPathAssert- Parameters:
actual- the path- Returns:
- the created assertion object
-
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
Creates a new instance of.LocalDateAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
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
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 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
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
public <ELEMENT,STREAM extends BaseStream<ELEMENT, ListAssert<ELEMENT> thenSTREAM>> (BaseStream<? extends ELEMENT, STREAM> actual) Creates a new instance offrom the givenListAssertBaseStream.Be aware that to create the returned
ListAssertthe given theBaseStreamis 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 theBaseStream.This method accepts
Streamand primitive stream variantsIntStream,LongStreamandDoubleStream.- Parameters:
actual- the actualBaseStreamvalue.- Returns:
- the created assertion object.
-