Top Description Inners Fields Constructors Methods
org.assertj.core.api

public Class Assumptions

extends Object
Class Inheritance
Known Direct Subclasses
org.assertj.core.api.BDDAssumptions
Annotations
@CheckReturnValue
Static Imports
net.bytebuddy.matcher.ElementMatchers.any, .ElementMatchers.not, org.assertj.core.api.Assertions.catchThrowable, .AssumptionExceptionFactory.assumptionNotMet, .ClassLoadingStrategyFactory.classLoadingStrategy, .SoftProxies.METHODS_NOT_TO_PROXY, org.assertj.core.util.Arrays.array

Entry point for assumption methods for different types, which allow to skip test execution on failed assumptions.
Since
2.9.0 / 3.9.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Implementation
private static final ByteBuddy
BYTE_BUDDY

This NamingStrategy takes the original class's name and adds a suffix to distinguish it.

private static final TypeCache<TypeCache.SimpleKey>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static <ASSERTION, ACTUAL> ASSERTION
asAssumption(Class<ASSERTION> assertionType, Class<ACTUAL> actualType, Object actual)

private static <ASSERTION> ASSERTION
asAssumption(Class<ASSERTION> assertionType, Class<?>[] constructorTypes, Object... constructorParams)

private static AbstractAssert<?, ?>
asAssumption(AbstractAssert<?, ?> assertion)

private static AbstractAssert<?, ?>
private static AbstractAssert<?, ?>
private static AbstractAssert<?, ?>
private static AbstractAssert<?, ?>
private static AbstractAssert<?, ?>
public static <
the type of the actual value.
T
>
ObjectAssert<T>

Returns:

the created assumption for assertion object.
assumeThat
(T
the actual value.
actual
)

Creates a new instance of ObjectAssert assumption.

public static AbstractStringAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(String
the actual value.
actual
)

Creates a new instance of StringAssert assumption.

public static AbstractBigDecimalAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(BigDecimal
the actual value.
actual
)

Creates a new instance of BigDecimalAssert assumption.

public static AbstractBigIntegerAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(BigInteger
the actual value.
actual
)

Creates a new instance of BigIntegerAssert assumption.

public static AbstractUriAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(URI
the actual value.
actual
)

Creates a new instance of UriAssert assumption.

public static AbstractUrlAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(URL
the actual value.
actual
)

Creates a new instance of UrlAssert assumption.

public static AbstractBooleanAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(boolean
the actual value.
actual
)

Creates a new instance of BooleanAssert assumption.

public static AbstractBooleanAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Boolean
the actual value.
actual
)

Creates a new instance of BooleanAssert assumption.

public static AbstractBooleanArrayAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(boolean[]
the actual value.
actual
)

Creates a new instance of BooleanArrayAssert assumption.

public static Boolean2DArrayAssert

Returns:

the created assumption for assertion object.
assumeThat
(boolean[][]
the actual value.
actual
)

Creates a new instance of Boolean2DArrayAssert assumption.

public static AbstractByteAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(byte
the actual value.
actual
)

Creates a new instance of ByteAssert assumption.

public static AbstractByteAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Byte
the actual value.
actual
)

Creates a new instance of ByteAssert assumption.

public static AbstractByteArrayAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(byte[]
the actual value.
actual
)

Creates a new instance of ByteArrayAssert assumption.

public static Byte2DArrayAssert

Returns:

the created assumption for assertion object.
assumeThat
(byte[][]
the actual value.
actual
)

Creates a new instance of Byte2DArrayAssert assumption.

public static AbstractCharacterAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(char
the actual value.
actual
)

Creates a new instance of CharacterAssert assumption.

public static AbstractCharacterAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Character
the actual value.
actual
)

Creates a new instance of CharacterAssert assumption.

public static AbstractCharArrayAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(char[]
the actual value.
actual
)

Creates a new instance of CharArrayAssert assumption.

public static Char2DArrayAssert

Returns:

the created assumption for assertion object.
assumeThat
(char[][]
the actual value.
actual
)

Creates a new instance of Char2DArrayAssert assumption.

public static AbstractCharSequenceAssert<?, ? extends CharSequence>

Returns:

the created assumption for assertion object.
assumeThat
(CharSequence
the actual value.
actual
)

Creates a new instance of CharSequenceAssert assumption.

public static AbstractCharSequenceAssert<?, ? extends CharSequence>

Returns:

the created assumption for assertion object.
assumeThat
(StringBuilder
the actual value.
actual
)

Creates a new instance of CharSequenceAssert assumption from a StringBuilder.

public static AbstractCharSequenceAssert<?, ? extends CharSequence>

Returns:

the created assumption for assertion object.
assumeThat
(StringBuffer
the actual value.
actual
)

Creates a new instance of CharSequenceAssert assumption from a StringBuffer.

public static AbstractShortAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(short
the actual value.
actual
)

Creates a new instance of ShortAssert assumption.

public static AbstractShortAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Short
the actual value.
actual
)

Creates a new instance of ShortAssert assumption.

public static AbstractShortArrayAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(short[]
the actual value.
actual
)

Creates a new instance of ShortArrayAssert assumption.

public static Short2DArrayAssert

Returns:

the created assumption for assertion object.
assumeThat
(short[][]
the actual value.
actual
)

Creates a new instance of Short2DArrayAssert assumption.

public static AbstractIntegerAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(int
the actual value.
actual
)

Creates a new instance of IntegerAssert assumption.

public static AbstractIntegerAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Integer
the actual value.
actual
)

Creates a new instance of IntegerAssert assumption.

public static AbstractIntArrayAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(int[]
the actual value.
actual
)

Creates a new instance of IntArrayAssert assumption.

public static Int2DArrayAssert

Returns:

the created assumption for assertion object.
assumeThat
(int[][]
the actual value.
actual
)

Creates a new instance of Int2DArrayAssert assumption.

public static AbstractLongAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(long
the actual value.
actual
)

Creates a new instance of LongAssert assumption.

public static AbstractLongAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Long
the actual value.
actual
)

Creates a new instance of LongAssert assumption.

public static AbstractLongArrayAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(long[]
the actual value.
actual
)

Creates a new instance of LongArrayAssert assumption.

public static Long2DArrayAssert

Returns:

the created assumption for assertion object.
assumeThat
(long[][]
the actual value.
actual
)

Creates a new instance of Long2DArrayAssert assumption.

public static AbstractFloatAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(float
the actual value.
actual
)

Creates a new instance of FloatAssert assumption.

public static AbstractFloatAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Float
the actual value.
actual
)

Creates a new instance of FloatAssert assumption.

public static AbstractFloatArrayAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(float[]
the actual value.
actual
)

Creates a new instance of FloatArrayAssert assumption.

public static Float2DArrayAssert

Returns:

the created assumption for assertion object.
assumeThat
(float[][]
the actual value.
actual
)

Creates a new instance of Float2DArrayAssert assumption.

public static AbstractDoubleAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(double
the actual value.
actual
)

Creates a new instance of DoubleAssert assumption.

public static AbstractDoubleAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Double
the actual value.
actual
)

Creates a new instance of DoubleAssert assumption.

public static AbstractDoubleArrayAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(double[]
the actual value.
actual
)

Creates a new instance of DoubleArrayAssert assumption.

public static Double2DArrayAssert

Returns:

the created assumption for assertion object.
assumeThat
(double[][]
the actual value.
actual
)

Creates a new instance of Double2DArrayAssert assumption.

public static AtomicBooleanAssert

Returns:

the created assumption for assertion object.
assumeThat
(AtomicBoolean
the actual value.
actual
)

Create assumption for AtomicBoolean.

public static AtomicIntegerAssert

Returns:

the created assumption for assertion object.
assumeThat
(AtomicInteger
the actual value.
actual
)

Create assumption for AtomicInteger.

public static AtomicIntegerArrayAssert

Returns:

the created assumption for assertion object.
assumeThat
(AtomicIntegerArray
the actual value.
actual
)

Creates int[] assumption for AtomicIntegerArray.

public static <
the type of the object holding the updatable field.
OBJECT
>
AtomicIntegerFieldUpdaterAssert<OBJECT>

Returns:

the created assumption for assertion object.
assumeThat
(AtomicIntegerFieldUpdater<OBJECT>
the actual value.
actual
)

Create assumption for AtomicIntegerFieldUpdater.

public static LongAdderAssert

Returns:

the created assumption for assertion object.
assumeThat
(LongAdder
the actual value.
actual
)

Create assumption for LongAdder.

public static AtomicLongAssert

Returns:

the created assumption for assertion object.
assumeThat
(AtomicLong
the actual value.
actual
)

Create assumption for AtomicLong.

public static AtomicLongArrayAssert

Returns:

the created assumption for assertion object.
assumeThat
(AtomicLongArray
the actual value.
actual
)

Create assumption for AtomicLongArray.

public static <
the type of the object holding the updatable field.
OBJECT
>
AtomicLongFieldUpdaterAssert<OBJECT>

Returns:

the created assumption for assertion object.
assumeThat
(AtomicLongFieldUpdater<OBJECT>
the actual value.
actual
)

Create assumption for AtomicLongFieldUpdater.

public static <
the type of the value contained in the AtomicReference.
VALUE
>
AtomicReferenceAssert<VALUE>

Returns:

the created assumption for assertion object.
assumeThat
(AtomicReference<VALUE>
the actual value.
actual
)

Create assumption for AtomicReference.

public static <
the type of the value contained in the AtomicReferenceArray.
ELEMENT
>
AtomicReferenceArrayAssert<ELEMENT>

Returns:

the created assumption for assertion object.
assumeThat
(AtomicReferenceArray<ELEMENT>
the actual value.
actual
)

Create assumption for AtomicReferenceArray.

public static <
the type of the field which gets updated by the AtomicReferenceFieldUpdater.
FIELD
,
the type of the object holding the updatable field.
OBJECT
>
AtomicReferenceFieldUpdaterAssert<FIELD, OBJECT>

Returns:

the created assumption for assertion object.
assumeThat
(AtomicReferenceFieldUpdater<OBJECT, FIELD>
the actual value.
actual
)

Create assumption for AtomicReferenceFieldUpdater.

public static <
the type of the value contained in the AtomicMarkableReference.
VALUE
>
AtomicMarkableReferenceAssert<VALUE>

Returns:

the created assumption for assertion object.
assumeThat
(AtomicMarkableReference<VALUE>
the actual value.
actual
)

Create assumption for AtomicMarkableReference.

public static <
the type of the value contained in the AtomicStampedReference.
VALUE
>
AtomicStampedReferenceAssert<VALUE>

Returns:

the created assumption for assertion object.
assumeThat
(AtomicStampedReference<VALUE>
the actual value.
actual
)

Create assumption for AtomicStampedReference.

public static ClassAssert

Returns:

the created assumption for assertion object.
assumeThat
(Class<?>
the actual value.
actual
)

Creates a new instance of ClassAssert assumption.

public static AbstractDateAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Date
the actual value.
actual
)

Creates a new instance of DateAssert assumption.

public static AbstractFileAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(File
the actual value.
actual
)

Creates a new instance of FileAssert assumption.

public static AbstractPathAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Path
the path to test
actual
)

Creates a new instance of PathAssert assumption.

public static AbstractInputStreamAssert<?, ? extends InputStream>

Returns:

the created assumption for assertion object.
assumeThat
(InputStream
the actual value.
actual
)

Creates a new instance of InputStreamAssert assumption.

public static <
the type of the value contained in the java.util.concurrent.Future.
RESULT
>
AbstractFutureAssert<?, ? extends Future<? extends RESULT>, RESULT>

Returns:

the created assumption for assertion object.
assumeThat
(Future<RESULT>
the actual value.
future
)

Create assertion for FutureAssert assumption.

public static <
the type of elements.
ELEMENT
>
IterableAssert<ELEMENT>

Returns:

the created assumption for assertion object.
assumeThat
(Iterable<? extends ELEMENT>
the actual value.
actual
)

Creates a new instance of IterableAssert assumption.

public static <
the type of elements.
ELEMENT
>
IteratorAssert<ELEMENT>

Returns:

the created assumption for assertion object.
assumeThat
(Iterator<? extends ELEMENT>
the actual value.
actual
)

Creates a new instance of IteratorAssert assumption.

public static <
the type of elements.
E
>
AbstractCollectionAssert<?, Collection<? extends E>, E, ObjectAssert<E>>

Returns:

the created assumption for assertion object.
assumeThat
(Collection<? extends E>
the actual value.
actual
)

Creates a new instance of CollectionAssert assumption.

public static <
the type of elements.
ELEMENT
>
FactoryBasedNavigableListAssert<ListAssert<ELEMENT>, List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>>

Returns:

the created assumption for assertion object.
assumeThat
(List<? extends ELEMENT>
the actual value.
actual
)

Creates a new instance of ListAssert assumption.

public static <
the type of elements.
T
>
ObjectArrayAssert<T>

Returns:

the created assumption for assertion object.
assumeThat
(T[]
the actual value.
actual
)

Creates a new instance of ObjectArrayAssert assumption.

public static <
the type of elements.
T
>
Object2DArrayAssert<T>

Returns:

the created assumption for assertion object.
assumeThat
(T[][]
the actual value.
actual
)

Creates a new instance of Object2DArrayAssert assumption.

public static <
the type of keys in the map.
K
,
the type of values in the map.
V
>
MapAssert<K, V>

Returns:

the created assumption for assertion object.
assumeThat
(Map<K, V>
the actual value.
actual
)

Creates a new instance of MapAssert assumption.

public static <
the type of actual.
T extends Comparable<? super T>
>
AbstractComparableAssert<?, T>

Returns:

the created assumption for assertion object.
assumeThat
(T
the actual value.
actual
)

Creates a new instance of GenericComparableAssert assumption.

public static <
the type of the actual throwable.
T extends Throwable
>
AbstractThrowableAssert<?, T>

Returns:

the created assumption for assertion object.
assumeThat
(T
the actual value.
actual
)

Creates a new instance of ThrowableAssert assumption.

public static <
the Predicate type.
T
>
PredicateAssert<T>

Returns:

the created assumption for assertion object.
assumeThat
(Predicate<T>
the Predicate to test
actual
)

Creates a new instance of PredicateAssert assumption.

public static IntPredicateAssert

Returns:

the created assumption for assertion object.
assumeThat
(IntPredicate
the IntPredicate to test
actual
)

Creates a new instance of IntPredicateAssert assumption.

public static LongPredicateAssert

Returns:

the created assumption for assertion object.
assumeThat
(LongPredicate
the LongPredicate to test
actual
)

Creates a new instance of LongPredicateAssert assumption.

public static DoublePredicateAssert

Returns:

the created assumption for assertion object.
assumeThat
(DoublePredicate
the DoublePredicate to test
actual
)

Creates a new instance of DoublePredicateAssert assumption.

public static <
the CompletableFuture wrapped type.
RESULT
>
CompletableFutureAssert<RESULT>

Returns:

the created assumption for assertion object.
assumeThat
(CompletableFuture<RESULT>
the CompletableFuture to test
actual
)

Creates a new instance of CompletableFutureAssert assumption.

public static <
the CompletableFuture wrapped type.
RESULT
>
CompletableFutureAssert<RESULT>

Returns:

the created assumption for assertion object.
assumeThat
(CompletionStage<RESULT>
the CompletableFuture to test
actual
)

Creates a new instance of CompletableFutureAssert assumption for a java.util.concurrent.CompletionStage by converting it to a CompletableFuture and returning a CompletableFutureAssert.

public static <
the Optional wrapped type.
VALUE
>
OptionalAssert<VALUE>

Returns:

the created assumption for assertion object.
assumeThat
(Optional<VALUE>
the Optional to test
actual
)

Creates a new instance of OptionalAssert assumption.

public static OptionalDoubleAssert

Returns:

the created assumption for assertion object.
assumeThat
(OptionalDouble
the OptionalDouble to test
actual
)

Creates a new instance of OptionalDoubleAssert assumption.

public static MatcherAssert

Returns:

the created assumption for assertion object.
assumeThat
(Matcher
the Matcher to test
actual
)

Creates a new instance of MatcherAssert assumption.

public static OptionalIntAssert

Returns:

the created assumption for assertion object.
assumeThat
(OptionalInt
the OptionalInt to test
actual
)

Creates a new instance of OptionalIntAssert assumption.

public static OptionalLongAssert

Returns:

the created assumption for assertion object.
assumeThat
(OptionalLong
the OptionalLong to test
actual
)

Creates a new instance of OptionalLongAssert assumption.

public static TemporalAssert

Returns:

the created assumption for the given object.
assumeThat
(Temporal
the Temporal to test
actual
)

Creates a new instance of TemporalAssert assumption.

public static AbstractZonedDateTimeAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(ZonedDateTime
the ZonedDateTime to test
actual
)

Creates a new instance of ZonedDateTimeAssert assumption.

public static AbstractLocalDateTimeAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(LocalDateTime
the LocalDateTime to test
actual
)

Creates a new instance of LocalDateTimeAssert assumption.

public static AbstractOffsetDateTimeAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(OffsetDateTime
the OffsetDateTime to test
actual
)

Creates a new instance of OffsetDateTimeAssert assumption.

public static AbstractOffsetTimeAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(OffsetTime
the LocalTime to test
actual
)

Creates a new instance of OffsetTimeAssert assumption.

public static AbstractLocalTimeAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(LocalTime
the LocalTime to test
actual
)

Creates a new instance of LocalTimeAssert assumption.

public static AbstractLocalDateAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(LocalDate
the LocalDate to test
actual
)

Creates a new instance of LocalDateAssert assumption.

public static AbstractYearMonthAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(YearMonth
the YearMonth to test
actual
)

Creates a new instance of YearMonthAssert assumption.

public static AbstractInstantAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Instant
the Instant to test
actual
)

Creates a new instance of InstantAssert assumption.

public static AbstractDurationAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Duration
the Duration to test
actual
)

Creates a new instance of DurationAssert assumption.

public static AbstractPeriodAssert<?>

Returns:

the created assumption for assertion object.
assumeThat
(Period
the Period to test
actual
)

Creates a new instance of PeriodAssert assumption.

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

Returns:

the created assumption for assertion object.
assumeThat
(Stream<? extends ELEMENT>
the Stream to test
actual
)

Creates a new instance of ListAssert assumption from the given Stream.

public static AbstractListAssert<?, List<? extends Double>, Double, ObjectAssert<Double>>

Returns:

the created assumption for assertion object.
assumeThat
(DoubleStream
the DoubleStream to test
actual
)

Creates a new instance of ListAssert assumption from the given DoubleStream.

public static AbstractListAssert<?, List<? extends Long>, Long, ObjectAssert<Long>>

Returns:

the created assumption for assertion object.
assumeThat
(LongStream
the LongStream to test
actual
)

Creates a new instance of ListAssert assumption from the given LongStream.

public static AbstractListAssert<?, List<? extends Integer>, Integer, ObjectAssert<Integer>>

Returns:

the created assumption for assertion object.
assumeThat
(IntStream
the LongStream to test
actual
)

Creates a new instance of ListAssert assumption from the given IntStream.

public static <
the type of the elements
ELEMENT
>
AbstractSpliteratorAssert<?, ELEMENT>

Returns:

the created assumption for assertion object.
assumeThat
(Spliterator<ELEMENT>
the Spliterator to test
actual
)

Creates a new instance of SpliteratorAssert assumption from the given Spliterator.

public static AbstractCharSequenceAssert<?, ? extends CharSequence>

Returns:

the created assumption for assertion object.
assumeThatCharSequence
(CharSequence
the actual value.
actual
)

Creates a new instance of CharSequenceAssert assumption.

public static AbstractThrowableAssert<?, ? extends Throwable>

Returns:

the created ThrowableAssert.
assumeThatCode
(ThrowableAssert.ThrowingCallable
The ThrowingCallable or lambda with the code that should raise the throwable.
shouldRaiseOrNotThrowable
)

Allows to capture and then assume on a Throwable (easier done with lambdas).

public static <
the type of elements.
E
>
AbstractCollectionAssert<?, Collection<? extends E>, E, ObjectAssert<E>>

Returns:

the created assumption for assertion object.
assumeThatCollection
(Collection<? extends E>
the actual value.
actual
)

Creates a new instance of CollectionAssert assumption.

public static <
the type of actual.
T
>
AbstractUniversalComparableAssert<?, T>

Returns:

the created assumption for assertion object.
assumeThatComparable
(Comparable<T>
the actual value.
actual
)

Creates a new instance of UniversalComparableAssert assumption.

public static ThrowableTypeAssert<Exception>

Returns:

the created assumption for assertion object.
assumeThatException
()

Alias for assumeThatExceptionOfType(Class) for Exception.

public static <
the exception type.
T extends Throwable
>
ThrowableTypeAssert<T>

Returns:

the created ThrowableTypeAssert.
assumeThatExceptionOfType
(final Class<? extends T>
the exception type class.
exceptionType
)

Entry point to check that an exception of type T is thrown by a given throwingCallable which allows to chain assertions on the thrown exception.

public static ThrowableTypeAssert<IllegalArgumentException>

Returns:

the created assumption for assertion object.
assumeThatIllegalArgumentException
()

Alias for assumeThatExceptionOfType(Class) for IllegalArgumentException.

public static ThrowableTypeAssert<IndexOutOfBoundsException>

Returns:

the created assumption for assertion object.
assumeThatIndexOutOfBoundsException
()

Alias for assumeThatExceptionOfType(Class) for IndexOutOfBoundsException.

public static ThrowableTypeAssert<IOException>

Returns:

the created assumption for assertion object.
assumeThatIOException
()

Alias for assumeThatExceptionOfType(Class) for IOException.

public static <
the type of elements.
ELEMENT
>
IterableAssert<ELEMENT>

Returns:

the created assumption for assertion object.
assumeThatIterable
(Iterable<? extends ELEMENT>
the actual value.
actual
)

Creates a new instance of IterableAssert assumption.

public static <
the type of elements.
ELEMENT
>
IteratorAssert<ELEMENT>

Returns:

the created assumption for assertion object.
assumeThatIterator
(Iterator<? extends ELEMENT>
the actual value.
actual
)

Creates a new instance of IteratorAssert assumption.

public static <
the type of elements.
ELEMENT
>
FactoryBasedNavigableListAssert<ListAssert<ELEMENT>, List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>>

Returns:

the created assumption for assertion object.
assumeThatList
(List<? extends ELEMENT>
the actual value.
actual
)

Creates a new instance of ListAssert assumption.

public static ThrowableTypeAssert<NullPointerException>

Returns:

the created assumption for assertion object.
assumeThatNullPointerException
()

Alias for assumeThatExceptionOfType(Class) for NullPointerException.

public static <
the type of the actual value.
T
>
ObjectAssert<T>

Returns:

the created assertion object.
assumeThatObject
(T
the actual value.
actual
)

Creates a new instance of ObjectAssert assumption.

public static AbstractPathAssert<?>

Returns:

the created assumption for assertion object.
assumeThatPath
(Path
the actual value.
actual
)

Creates a new instance of PathAssert assumption.

public static <
the type of elements.
T
>
PredicateAssert<T>

Returns:

the created assumption for assertion object.
assumeThatPredicate
(Predicate<T>
the actual value.
actual
)

Creates a new instance of PredicateAssert assumption.

public static ThrowableTypeAssert<ReflectiveOperationException>

Returns:

the created assumption for assertion object.
assumeThatReflectiveOperationException
()

Alias for assumeThatExceptionOfType(Class) for ReflectiveOperationException.

public static ThrowableTypeAssert<RuntimeException>

Returns:

the created assumption for assertion object.
assumeThatRuntimeException
()

Alias for assumeThatExceptionOfType(Class) for RuntimeException.

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

Returns:

the created assumption for assertion object.
assumeThatStream
(Stream<? extends ELEMENT>
the actual value.
actual
)

Creates a new instance of ListAssert assumption from the given Stream.

public static AbstractThrowableAssert<?, ? extends Throwable>

Returns:

the created assumption for assertion object.
assumeThatThrownBy
(ThrowableAssert.ThrowingCallable
The ThrowingCallable or lambda with the code that should raise the throwable.
shouldRaiseThrowable
)

Allows to capture and then assume on a Throwable (easier done with lambdas).

private static <ASSERTION> Class<? extends ASSERTION>
createAssumptionClass(Class<ASSERTION> assertClass)

protected static <ASSERTION> Class<? extends ASSERTION>
generateAssumptionClass(Class<ASSERTION> assertionType)

public static void
setPreferredAssumptionException(PreferredAssumptionException
the preferred exception to use with Assumptions.
preferredAssumptionException
)

Sets which exception is thrown if an assumption is not met.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait