Class AbstractStandardSoftAssertions
- java.lang.Object
-
- org.assertj.core.api.AbstractSoftAssertions
-
- org.assertj.core.api.Java6AbstractStandardSoftAssertions
-
- org.assertj.core.api.AbstractStandardSoftAssertions
-
- All Implemented Interfaces:
InstanceOfAssertFactories
- Direct Known Subclasses:
JUnitJupiterSoftAssertions,JUnitSoftAssertions,SoftAssertions
public abstract class AbstractStandardSoftAssertions extends Java6AbstractStandardSoftAssertions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.assertj.core.api.AbstractSoftAssertions
AbstractSoftAssertions.ThrowingRunnable
-
-
Field Summary
-
Fields inherited from class org.assertj.core.api.AbstractSoftAssertions
proxies
-
Fields inherited from interface org.assertj.core.api.InstanceOfAssertFactories
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 Summary
Constructors Constructor Description AbstractStandardSoftAssertions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathAssertassertThat(java.nio.file.Path actual)Creates a new, proxied instance of aPathAssertInstantAssertassertThat(java.time.Instant actual)Creates a new instance of.InstantAssertLocalDateAssertassertThat(java.time.LocalDate actual)Creates a new instance of.LocalDateAssertLocalDateTimeAssertassertThat(java.time.LocalDateTime actual)Creates a new instance of.LocalDateTimeAssertLocalTimeAssertassertThat(java.time.LocalTime actual)Creates a new instance of.LocalTimeAssertOffsetDateTimeAssertassertThat(java.time.OffsetDateTime actual)Creates a new instance of.OffsetDateTimeAssertOffsetTimeAssertassertThat(java.time.OffsetTime actual)Creates a new instance of.OffsetTimeAssertZonedDateTimeAssertassertThat(java.time.ZonedDateTime actual)Creates a new instance of.ZonedDateTimeAssert<RESULT> CompletableFutureAssert<RESULT>assertThat(java.util.concurrent.CompletableFuture<RESULT> actual)Create assertion forCompletableFuture.<RESULT> CompletableFutureAssert<RESULT>assertThat(java.util.concurrent.CompletionStage<RESULT> actual)Create assertion forCompletionStageby converting it to aCompletableFutureand returning aCompletableFutureAssert.DoublePredicateAssertassertThat(java.util.function.DoublePredicate actual)Create assertion forDoublePredicate.IntPredicateAssertassertThat(java.util.function.IntPredicate actual)Create assertion forIntPredicate.LongPredicateAssertassertThat(java.util.function.LongPredicate actual)Create assertion forDoublePredicate.<T> ProxyablePredicateAssert<T>assertThat(java.util.function.Predicate<T> actual)Create assertion forPredicate.<VALUE> OptionalAssert<VALUE>assertThat(java.util.Optional<VALUE> actual)Create assertion forOptional.OptionalDoubleAssertassertThat(java.util.OptionalDouble actual)Create assertion forOptionalDouble.OptionalIntAssertassertThat(java.util.OptionalInt actual)Create assertion forOptionalInt.OptionalLongAssertassertThat(java.util.OptionalLong actual)Create assertion forOptionalLong.AbstractListAssert<?,java.util.List<? extends java.lang.Double>,java.lang.Double,ObjectAssert<java.lang.Double>>assertThat(java.util.stream.DoubleStream actual)Creates a new instance offrom the givenListAssertDoubleStream.AbstractListAssert<?,java.util.List<? extends java.lang.Integer>,java.lang.Integer,ObjectAssert<java.lang.Integer>>assertThat(java.util.stream.IntStream actual)Creates a new instance offrom the givenListAssertIntStream.AbstractListAssert<?,java.util.List<? extends java.lang.Long>,java.lang.Long,ObjectAssert<java.lang.Long>>assertThat(java.util.stream.LongStream actual)Creates a new instance offrom the givenListAssertLongStream.<ELEMENT> AbstractListAssert<?,java.util.List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>>assertThat(java.util.stream.Stream<? extends ELEMENT> actual)Creates a new instance offrom the givenListAssertStream.-
Methods inherited from class org.assertj.core.api.Java6AbstractStandardSoftAssertions
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 class org.assertj.core.api.AbstractSoftAssertions
check, decorateErrorsCollected, errorsCollected, fail, fail, fail, failBecauseExceptionWasNotThrown, proxy, shouldHaveThrown, wasSuccess
-
-
-
-
Method Detail
-
assertThat
public PathAssert assertThat(java.nio.file.Path actual)
Creates a new, proxied instance of aPathAssert- Parameters:
actual- the path- Returns:
- the created assertion object
-
assertThat
public <VALUE> OptionalAssert<VALUE> assertThat(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.
-
assertThat
public OptionalDoubleAssert assertThat(java.util.OptionalDouble actual)
Create assertion forOptionalDouble.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
assertThat
public OptionalLongAssert assertThat(java.util.OptionalLong actual)
Create assertion forOptionalLong.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
assertThat
public OptionalIntAssert assertThat(java.util.OptionalInt actual)
Create assertion forOptionalInt.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
assertThat
public LocalDateAssert assertThat(java.time.LocalDate actual)
Creates a new instance of.LocalDateAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
assertThat
public LocalDateTimeAssert assertThat(java.time.LocalDateTime actual)
Creates a new instance of.LocalDateTimeAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
assertThat
public ZonedDateTimeAssert assertThat(java.time.ZonedDateTime actual)
Creates a new instance of.ZonedDateTimeAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
assertThat
public LocalTimeAssert assertThat(java.time.LocalTime actual)
Creates a new instance of.LocalTimeAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
assertThat
public OffsetTimeAssert assertThat(java.time.OffsetTime actual)
Creates a new instance of.OffsetTimeAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
assertThat
public OffsetDateTimeAssert assertThat(java.time.OffsetDateTime actual)
Creates a new instance of.OffsetDateTimeAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
-
assertThat
public InstantAssert assertThat(java.time.Instant actual)
Creates a new instance of.InstantAssert- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.7.0
-
assertThat
public <RESULT> CompletableFutureAssert<RESULT> assertThat(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.
-
assertThat
public <RESULT> CompletableFutureAssert<RESULT> assertThat(java.util.concurrent.CompletionStage<RESULT> actual)
Create assertion forCompletionStageby converting it to aCompletableFutureand returning aCompletableFutureAssert.If the given
CompletionStageis null, theCompletableFuturein the returnedCompletableFutureAssertwill 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
public <T> ProxyablePredicateAssert<T> assertThat(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
-
assertThat
public IntPredicateAssert assertThat(java.util.function.IntPredicate actual)
Create assertion forIntPredicate.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
assertThat
public DoublePredicateAssert assertThat(java.util.function.DoublePredicate actual)
Create assertion forDoublePredicate.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
assertThat
public LongPredicateAssert assertThat(java.util.function.LongPredicate actual)
Create assertion forDoublePredicate.- Parameters:
actual- the actual value.- Returns:
- the created assertion object.
- Since:
- 3.5.0
-
assertThat
public <ELEMENT> AbstractListAssert<?,java.util.List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> assertThat(java.util.stream.Stream<? extends ELEMENT> actual)
Creates a new instance offrom the givenListAssertStream.Be aware that to create the returned
ListAssertthe given theStreamis 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 theStream.- Type Parameters:
ELEMENT- the type of elements.- Parameters:
actual- the actualStreamvalue.- Returns:
- the created assertion object.
-
assertThat
public AbstractListAssert<?,java.util.List<? extends java.lang.Double>,java.lang.Double,ObjectAssert<java.lang.Double>> assertThat(java.util.stream.DoubleStream actual)
Creates a new instance offrom the givenListAssertDoubleStream.Be aware that to create the returned
ListAssertthe given theDoubleStreamis 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 theDoubleStream.- Parameters:
actual- the actualDoubleStreamvalue.- Returns:
- the created assertion object.
-
assertThat
public AbstractListAssert<?,java.util.List<? extends java.lang.Long>,java.lang.Long,ObjectAssert<java.lang.Long>> assertThat(java.util.stream.LongStream actual)
Creates a new instance offrom the givenListAssertLongStream.Be aware that to create the returned
ListAssertthe given theLongStreamis 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 theLongStream.- Parameters:
actual- the actualLongStreamvalue.- Returns:
- the created assertion object.
-
assertThat
public AbstractListAssert<?,java.util.List<? extends java.lang.Integer>,java.lang.Integer,ObjectAssert<java.lang.Integer>> assertThat(java.util.stream.IntStream actual)
Creates a new instance offrom the givenListAssertIntStream.Be aware that to create the returned
ListAssertthe given theIntStreamis 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 theIntStream.- Parameters:
actual- the actualIntStreamvalue.- Returns:
- the created assertion object.
-
-