Interface StandardSoftAssertionsProvider
-
- All Superinterfaces:
AfterAssertionErrorCollected
,AssertionErrorCollector
,Java6StandardSoftAssertionsProvider
,SoftAssertionsProvider
- All Known Implementing Classes:
AutoCloseableSoftAssertions
,JUnitJupiterSoftAssertions
,JUnitSoftAssertions
,SoftAssertions
public interface StandardSoftAssertionsProvider extends Java6StandardSoftAssertionsProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.assertj.core.api.SoftAssertionsProvider
SoftAssertionsProvider.ThrowingRunnable
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default PathAssert
assertThat(Path actual)
Creates a new, proxied instance of aPathAssert
default DurationAssert
assertThat(Duration actual)
Creates a new instance of
.DurationAssert
default InstantAssert
assertThat(Instant actual)
Creates a new instance of
.InstantAssert
default LocalDateAssert
assertThat(LocalDate actual)
Creates a new instance of
.LocalDateAssert
default LocalDateTimeAssert
assertThat(LocalDateTime actual)
Creates a new instance of
.LocalDateTimeAssert
default LocalTimeAssert
assertThat(LocalTime actual)
Creates a new instance of
.LocalTimeAssert
default OffsetDateTimeAssert
assertThat(OffsetDateTime actual)
Creates a new instance of
.OffsetDateTimeAssert
default OffsetTimeAssert
assertThat(OffsetTime actual)
Creates a new instance of
.OffsetTimeAssert
default PeriodAssert
assertThat(Period actual)
Creates a new instance of
.PeriodAssert
default ZonedDateTimeAssert
assertThat(ZonedDateTime actual)
Creates a new instance of
.ZonedDateTimeAssert
default LongAdderAssert
assertThat(LongAdder actual)
Create assertion forLongAdder
.default <RESULT> CompletableFutureAssert<RESULT>
assertThat(CompletableFuture<RESULT> actual)
Create assertion forCompletableFuture
.default <RESULT> CompletableFutureAssert<RESULT>
assertThat(CompletionStage<RESULT> actual)
Create assertion forCompletionStage
by converting it to aCompletableFuture
and returning aCompletableFutureAssert
.default DoublePredicateAssert
assertThat(DoublePredicate actual)
Create assertion forDoublePredicate
.default IntPredicateAssert
assertThat(IntPredicate actual)
Create assertion forIntPredicate
.default LongPredicateAssert
assertThat(LongPredicate actual)
Create assertion forDoublePredicate
.default <T> ProxyablePredicateAssert<T>
assertThat(Predicate<T> actual)
Create assertion forPredicate
.default <VALUE> OptionalAssert<VALUE>
assertThat(Optional<VALUE> actual)
Create assertion forOptional
.default OptionalDoubleAssert
assertThat(OptionalDouble actual)
Create assertion forOptionalDouble
.default OptionalIntAssert
assertThat(OptionalInt actual)
Create assertion forOptionalInt
.default OptionalLongAssert
assertThat(OptionalLong actual)
Create assertion forOptionalLong
.default <ELEMENT> SpliteratorAssert<ELEMENT>
assertThat(Spliterator<ELEMENT> actual)
Creates a new instance of
from the givenSpliteratorAssert
Spliterator
.default AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>>
assertThat(DoubleStream actual)
Creates a new instance of
from the givenListAssert
DoubleStream
.default AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>>
assertThat(IntStream actual)
Creates a new instance of
from the givenListAssert
IntStream
.default AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>>
assertThat(LongStream actual)
Creates a new instance of
from the givenListAssert
LongStream
.default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>>
assertThat(Stream<? extends ELEMENT> actual)
Creates a new instance of
from the givenListAssert
Stream
.-
Methods inherited from interface org.assertj.core.api.AssertionErrorCollector
assertionErrorsCollected, collectAssertionError, getDelegate, onAssertionErrorCollected, setDelegate, succeeded, wasSuccess
-
Methods inherited from interface org.assertj.core.api.Java6StandardSoftAssertionsProvider
assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThatCode, assertThatObject, assertThatThrownBy, assertThatThrownBy
-
Methods inherited from interface org.assertj.core.api.SoftAssertionsProvider
assertAll, assertAlso, check, proxy
-
-
-
-
Method Detail
-
assertThat
default PathAssert assertThat(Path actual)
Creates a new, proxied instance of aPathAssert
- Parameters:
actual
- the path- Returns:
- the created assertion object
-
assertThat
default <VALUE> OptionalAssert<VALUE> assertThat(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.
-
assertThat
default OptionalDoubleAssert assertThat(OptionalDouble actual)
Create assertion forOptionalDouble
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
assertThat
default OptionalLongAssert assertThat(OptionalLong actual)
Create assertion forOptionalLong
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
assertThat
default OptionalIntAssert assertThat(OptionalInt actual)
Create assertion forOptionalInt
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
assertThat
default LocalDateAssert assertThat(LocalDate actual)
Creates a new instance of
.LocalDateAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
assertThat
default LocalDateTimeAssert assertThat(LocalDateTime actual)
Creates a new instance of
.LocalDateTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
assertThat
default ZonedDateTimeAssert assertThat(ZonedDateTime actual)
Creates a new instance of
.ZonedDateTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
assertThat
default LocalTimeAssert assertThat(LocalTime actual)
Creates a new instance of
.LocalTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
assertThat
default OffsetTimeAssert assertThat(OffsetTime actual)
Creates a new instance of
.OffsetTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
assertThat
default OffsetDateTimeAssert assertThat(OffsetDateTime actual)
Creates a new instance of
.OffsetDateTimeAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
assertThat
default InstantAssert assertThat(Instant actual)
Creates a new instance of
.InstantAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.7.0
-
assertThat
default DurationAssert assertThat(Duration actual)
Creates a new instance of
.DurationAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.15.0
-
assertThat
default PeriodAssert assertThat(Period actual)
Creates a new instance of
.PeriodAssert
- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.17.0
-
assertThat
default <RESULT> CompletableFutureAssert<RESULT> assertThat(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.
-
assertThat
default <RESULT> CompletableFutureAssert<RESULT> assertThat(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.
-
assertThat
default <T> ProxyablePredicateAssert<T> assertThat(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
-
assertThat
default IntPredicateAssert assertThat(IntPredicate actual)
Create assertion forIntPredicate
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
assertThat
default DoublePredicateAssert assertThat(DoublePredicate actual)
Create assertion forDoublePredicate
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
assertThat
default LongPredicateAssert assertThat(LongPredicate actual)
Create assertion forDoublePredicate
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
assertThat
default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> assertThat(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.
-
assertThat
default AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> assertThat(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.
-
assertThat
default AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> assertThat(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.
-
assertThat
default AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> assertThat(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.
-
assertThat
default <ELEMENT> SpliteratorAssert<ELEMENT> assertThat(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.
-
assertThat
default LongAdderAssert assertThat(LongAdder actual)
Create assertion forLongAdder
.- Parameters:
actual
- the actual value.- Returns:
- the created assertion object.
-
-