public abstract class AbstractBDDSoftAssertions extends Java6AbstractBDDSoftAssertions
AbstractSoftAssertions.ThrowingRunnable
proxies
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, STREAM, STRING, STRING_BUFFER, STRING_BUILDER, THROWABLE, URI_TYPE, URL_TYPE, ZONED_DATE_TIME
Constructor and Description |
---|
AbstractBDDSoftAssertions() |
Modifier and Type | Method and Description |
---|---|
<RESULT> CompletableFutureAssert<RESULT> |
then(java.util.concurrent.CompletableFuture<RESULT> actual)
Create assertion for
CompletableFuture . |
<RESULT> CompletableFutureAssert<RESULT> |
then(java.util.concurrent.CompletionStage<RESULT> actual)
Create assertion for
CompletionStage by converting it to a CompletableFuture and returning a CompletableFutureAssert . |
DoublePredicateAssert |
then(java.util.function.DoublePredicate actual)
Create assertion for
DoublePredicate . |
AbstractListAssert<?,java.util.List<? extends java.lang.Double>,java.lang.Double,ObjectAssert<java.lang.Double>> |
then(java.util.stream.DoubleStream actual)
Creates a new instance of
from the given DoubleStream . |
InstantAssert |
then(java.time.Instant actual)
Creates a new instance of
. |
IntPredicateAssert |
then(java.util.function.IntPredicate actual)
Create assertion for
IntPredicate . |
AbstractListAssert<?,java.util.List<? extends java.lang.Integer>,java.lang.Integer,ObjectAssert<java.lang.Integer>> |
then(java.util.stream.IntStream actual)
Creates a new instance of
from the given IntStream . |
LocalDateAssert |
then(java.time.LocalDate actual)
Creates a new instance of
. |
LocalDateTimeAssert |
then(java.time.LocalDateTime actual)
Creates a new instance of
. |
LocalTimeAssert |
then(java.time.LocalTime actual)
Creates a new instance of
. |
LongPredicateAssert |
then(java.util.function.LongPredicate actual)
Create assertion for
DoublePredicate . |
AbstractListAssert<?,java.util.List<? extends java.lang.Long>,java.lang.Long,ObjectAssert<java.lang.Long>> |
then(java.util.stream.LongStream actual)
Creates a new instance of
from the given LongStream . |
OffsetDateTimeAssert |
then(java.time.OffsetDateTime actual)
Creates a new instance of
. |
OffsetTimeAssert |
then(java.time.OffsetTime actual)
Creates a new instance of
. |
<VALUE> OptionalAssert<VALUE> |
then(java.util.Optional<VALUE> actual)
Create assertion for
Optional . |
OptionalDoubleAssert |
then(java.util.OptionalDouble actual)
Create assertion for
OptionalDouble . |
OptionalIntAssert |
then(java.util.OptionalInt actual)
Create assertion for
OptionalInt . |
OptionalLongAssert |
then(java.util.OptionalLong actual)
Create assertion for
OptionalLong . |
PathAssert |
then(java.nio.file.Path actual)
Creates a new, proxied instance of a
PathAssert |
<T> ProxyablePredicateAssert<T> |
then(java.util.function.Predicate<T> actual)
Create assertion for
Predicate . |
<ELEMENT> AbstractListAssert<?,java.util.List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
then(java.util.stream.Stream<? extends ELEMENT> actual)
Creates a new instance of
from the given Stream . |
ZonedDateTimeAssert |
then(java.time.ZonedDateTime actual)
Creates a new instance of
. |
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, thenCode, thenObject, thenThrownBy, thenThrownBy
check, decorateErrorsCollected, errorsCollected, fail, fail, fail, failBecauseExceptionWasNotThrown, proxy, shouldHaveThrown, wasSuccess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
array, atomicIntegerFieldUpdater, atomicLongFieldUpdater, atomicMarkableReference, atomicReference, atomicReferenceArray, atomicReferenceFieldUpdater, atomicStampedReference, comparable, completableFuture, completionStage, future, iterable, iterator, list, map, optional, predicate, stream, type
public PathAssert then(java.nio.file.Path actual)
PathAssert
actual
- the pathpublic <VALUE> OptionalAssert<VALUE> then(java.util.Optional<VALUE> actual)
Optional
.VALUE
- the type of the value contained in the Optional
.actual
- the actual value.public OptionalDoubleAssert then(java.util.OptionalDouble actual)
OptionalDouble
.actual
- the actual value.public OptionalIntAssert then(java.util.OptionalInt actual)
OptionalInt
.actual
- the actual value.public OptionalLongAssert then(java.util.OptionalLong actual)
OptionalLong
.actual
- the actual value.public LocalDateAssert then(java.time.LocalDate actual)
LocalDateAssert
.actual
- the actual value.public LocalDateTimeAssert then(java.time.LocalDateTime actual)
LocalDateTimeAssert
.actual
- the actual value.public ZonedDateTimeAssert then(java.time.ZonedDateTime actual)
ZonedDateTimeAssert
.actual
- the actual value.public LocalTimeAssert then(java.time.LocalTime actual)
LocalTimeAssert
.actual
- the actual value.public OffsetTimeAssert then(java.time.OffsetTime actual)
OffsetTimeAssert
.actual
- the actual value.public OffsetDateTimeAssert then(java.time.OffsetDateTime actual)
OffsetDateTimeAssert
.actual
- the actual value.public InstantAssert then(java.time.Instant actual)
InstantAssert
.actual
- the actual value.public <RESULT> CompletableFutureAssert<RESULT> then(java.util.concurrent.CompletableFuture<RESULT> actual)
CompletableFuture
.RESULT
- the type of the value contained in the CompletableFuture
.actual
- the actual value.public <RESULT> CompletableFutureAssert<RESULT> then(java.util.concurrent.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.public <T> ProxyablePredicateAssert<T> then(java.util.function.Predicate<T> actual)
Predicate
.T
- the type of the value contained in the Predicate
.actual
- the actual value.public IntPredicateAssert then(java.util.function.IntPredicate actual)
IntPredicate
.actual
- the actual value.public DoublePredicateAssert then(java.util.function.DoublePredicate actual)
DoublePredicate
.actual
- the actual value.public LongPredicateAssert then(java.util.function.LongPredicate actual)
DoublePredicate
.actual
- the actual value.public <ELEMENT> AbstractListAssert<?,java.util.List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> then(java.util.stream.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.public AbstractListAssert<?,java.util.List<? extends java.lang.Double>,java.lang.Double,ObjectAssert<java.lang.Double>> then(java.util.stream.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.public AbstractListAssert<?,java.util.List<? extends java.lang.Long>,java.lang.Long,ObjectAssert<java.lang.Long>> then(java.util.stream.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.public AbstractListAssert<?,java.util.List<? extends java.lang.Integer>,java.lang.Integer,ObjectAssert<java.lang.Integer>> then(java.util.stream.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.