Top Methods
org.assertj.core.api

public Interface StandardSoftAssertionsProvider

extends Java6StandardSoftAssertionsProvider
Known Direct Implementers
org.assertj.core.api.JUnitJupiterSoftAssertions, org.assertj.core.api.JUnitSoftAssertions, org.assertj.core.api.SoftAssertions
Annotations
@CheckReturnValue
Imports
java.nio.file.Path, java.time.Duration, .Instant, .LocalDate, .LocalDateTime, .LocalTime, .OffsetDateTime, .OffsetTime, .Period, .YearMonth, .ZonedDateTime, java.time.temporal.Temporal, java.util.List, .Optional, .OptionalDouble, .OptionalInt, .OptionalLong, .Spliterator, java.util.concurrent.CompletableFuture, .CompletionStage, java.util.concurrent.atomic.LongAdder, java.util.function.DoublePredicate, .IntPredicate, .LongPredicate, .Predicate, java.util.regex.Matcher, java.util.stream.DoubleStream, .IntStream, .LongStream, .Stream, org.assertj.core.util.CheckReturnValue

Method Summary

Modifier and TypeMethod and Description
public default PathAssert
public default <
the type of the value contained in the java.util.Optional.
VALUE
>
OptionalAssert<VALUE>
public default OptionalDoubleAssert
public default OptionalLongAssert
public default MatcherAssert
public default OptionalIntAssert
public default LocalDateAssert
public default YearMonthAssert
public default LocalDateTimeAssert
public default ZonedDateTimeAssert
public default LocalTimeAssert
public default OffsetTimeAssert
public default OffsetDateTimeAssert
public default InstantAssert
public default DurationAssert
public default PeriodAssert
public default <
the type of the value contained in the java.util.concurrent.CompletableFuture.
RESULT
>
CompletableFutureAssert<RESULT>
public default <
the type of the value contained in the java.util.concurrent.CompletionStage.
RESULT
>
CompletableFutureAssert<RESULT>
public default <
the type of the value contained in the Predicate.
T
>
PredicateAssert<T>
public default IntPredicateAssert
public default DoublePredicateAssert
public default LongPredicateAssert
public default <
the type of elements.
ELEMENT
>
AbstractListAssert<?, List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>>
public default AbstractListAssert<?, List<? extends Double>, Double, ObjectAssert<Double>>
public default AbstractListAssert<?, List<? extends Long>, Long, ObjectAssert<Long>>
public default AbstractListAssert<?, List<? extends Integer>, Integer, ObjectAssert<Integer>>
public default <
the type of elements.
ELEMENT
>
SpliteratorAssert<ELEMENT>
public default LongAdderAssert
public default TemporalAssert
public default AbstractPathAssert<?>

Returns:

the created assertion object
assertThatPath
(Path
the path to test
actual
)

Creates a new, proxied instance of a PathAssert

Use this over assertThat(Path) in case of ambiguous method resolution when the object under test implements several interfaces Assertj provides assertThat for.

public default <
the type of the value contained in the Predicate.
T
>
PredicateAssert<T>

Returns:

the created assertion object.
assertThatPredicate
(Predicate<T>
the actual value.
actual
)

Create assertion for Predicate.

public default <
the type of elements.
ELEMENT
>
AbstractListAssert<?, List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>>

Returns:

the created assertion object.
assertThatStream
(Stream<? extends ELEMENT>
the actual value.
actual
)

Creates a new instance of ListAssert from the given Stream.

Inherited from org.assertj.core.api.Java6StandardSoftAssertionsProvider:
assertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatassertThatCharSequenceassertThatCodeassertThatCollectionassertThatComparableassertThatExceptionassertThatExceptionOfTypeassertThatIllegalArgumentExceptionassertThatIllegalStateExceptionassertThatIndexOutOfBoundsExceptionassertThatIOExceptionassertThatIterableassertThatIteratorassertThatListassertThatNullPointerExceptionassertThatObjectassertThatReflectiveOperationExceptionassertThatRuntimeExceptionassertThatThrownByassertThatThrownBy