Top Description Methods
org.assertj.core.api

public Interface Java6BDDSoftAssertionsProvider

extends SoftAssertionsProvider
Known Direct Subinterfaces
org.assertj.core.api.BDDSoftAssertionsProvider
Known Direct Implementers
org.assertj.core.api.Java6JUnitBDDSoftAssertions, org.assertj.core.api.Java6BDDSoftAssertions
Annotations
@CheckReturnValue
Static Imports
org.assertj.core.api.Assertions.catchThrowable

AbstractBDDSoftAssertions compatible with Android. Duplicated from BDDSoftAssertionsProvider.
Since
2.5.0 / 3.5.0
See Also
BDDSoftAssertionsProvider

Method Summary

Modifier and TypeMethod and Description
public default BigDecimalAssert

Returns:

the created assertion object.
then
(BigDecimal
the actual value.
actual
)

Creates a new instance of BigDecimalAssert.

public default BigIntegerAssert

Returns:

the created assertion object.
then
(BigInteger
the actual value.
actual
)

Creates a new instance of BigIntegerAssert.

public default BooleanAssert

Returns:

the created assertion object.
then
(boolean
the actual value.
actual
)

Creates a new instance of BooleanAssert.

public default BooleanAssert

Returns:

the created assertion object.
then
(Boolean
the actual value.
actual
)

Creates a new instance of BooleanAssert.

public default BooleanArrayAssert

Returns:

the created assertion object.
then
(boolean[]
the actual value.
actual
)

Creates a new instance of BooleanArrayAssert.

public default Boolean2DArrayAssert

Returns:

the created assertion object.
then
(boolean[][]
the actual value.
actual
)

Creates a new instance of Boolean2DArrayAssert.

public default ByteAssert

Returns:

the created assertion object.
then
(byte
the actual value.
actual
)

Creates a new instance of ByteAssert.

public default ByteAssert

Returns:

the created assertion object.
then
(Byte
the actual value.
actual
)

Creates a new instance of ByteAssert.

public default ByteArrayAssert

Returns:

the created assertion object.
then
(byte[]
the actual value.
actual
)

Creates a new instance of ByteArrayAssert.

public default Byte2DArrayAssert

Returns:

the created assertion object.
then
(byte[][]
the actual value.
actual
)

Creates a new instance of Byte2DArrayAssert.

public default CharacterAssert

Returns:

the created assertion object.
then
(char
the actual value.
actual
)

Creates a new instance of CharacterAssert.

public default CharArrayAssert

Returns:

the created assertion object.
then
(char[]
the actual value.
actual
)

Creates a new instance of CharArrayAssert.

public default Char2DArrayAssert

Returns:

the created assertion object.
then
(char[][]
the actual value.
actual
)

Creates a new instance of Char2DArrayAssert.

public default CharacterAssert

Returns:

the created assertion object.
then
(Character
the actual value.
actual
)

Creates a new instance of CharacterAssert.

public default ClassAssert

Returns:

the created assertion object.
then
(Class<?>
the actual value.
actual
)

Creates a new instance of ClassAssert

We don't return ClassAssert as it has overridden methods to annotated with SafeVarargs.

public default <
the type of elements.
T
>
CollectionAssert<T>

Returns:

the created assertion object.
then
(Collection<? extends T>
the actual value.
actual
)

Creates a new instance of CollectionAssert.

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

Returns:

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

Creates a new instance of GenericComparableAssert with standard comparison semantics.

public default <
the type of elements.
T
>
IterableAssert<T>

Returns:

the created assertion object.
then
(Iterable<? extends T>
the actual value.
actual
)

Creates a new instance of IterableAssert.

public default <
the type of elements.
T
>
IteratorAssert<T>

Returns:

the created assertion object.
then
(Iterator<? extends T>
the actual value.
actual
)

Creates a new instance of IteratorAssert.

public default DoubleAssert

Returns:

the created assertion object.
then
(double
the actual value.
actual
)

Creates a new instance of DoubleAssert.

public default DoubleAssert

Returns:

the created assertion object.
then
(Double
the actual value.
actual
)

Creates a new instance of DoubleAssert.

public default DoubleArrayAssert

Returns:

the created assertion object.
then
(double[]
the actual value.
actual
)

Creates a new instance of DoubleArrayAssert.

public default Double2DArrayAssert

Returns:

the created assertion object.
then
(double[][]
the actual value.
actual
)

Creates a new instance of Double2DArrayAssert.

public default FileAssert

Returns:

the created assertion object.
then
(File
the actual value.
actual
)

Creates a new instance of FileAssert.

public default <
the type of the value contained in the java.util.concurrent.Future.
RESULT
>
FutureAssert<RESULT>

Returns:

the created assertion object.
then
(Future<RESULT>
the actual value.
actual
)

Creates a new instance of FutureAssert.

public default InputStreamAssert

Returns:

the created assertion object.
then
(InputStream
the actual value.
actual
)

Creates a new instance of InputStreamAssert.

public default FloatAssert

Returns:

the created assertion object.
then
(float
the actual value.
actual
)

Creates a new instance of FloatAssert.

public default FloatAssert

Returns:

the created assertion object.
then
(Float
the actual value.
actual
)

Creates a new instance of FloatAssert.

public default FloatArrayAssert

Returns:

the created assertion object.
then
(float[]
the actual value.
actual
)

Creates a new instance of FloatArrayAssert.

public default Float2DArrayAssert

Returns:

the created assertion object.
then
(float[][]
the actual value.
actual
)

Creates a new instance of Float2DArrayAssert.

public default IntegerAssert

Returns:

the created assertion object.
then
(int
the actual value.
actual
)

Creates a new instance of IntegerAssert.

public default IntArrayAssert

Returns:

the created assertion object.
then
(int[]
the actual value.
actual
)

Creates a new instance of IntArrayAssert.

public default Int2DArrayAssert

Returns:

the created assertion object.
then
(int[][]
the actual value.
actual
)

Creates a new instance of Int2DArrayAssert.

public default IntegerAssert

Returns:

the created assertion object.
then
(Integer
the actual value.
actual
)

Creates a new instance of IntegerAssert.

public default <
the type of elements.
T
>
ListAssert<T>

Returns:

the created assertion object.
then
(List<? extends T>
the actual value.
actual
)

Creates a new instance of ListAssert.

public default LongAssert

Returns:

the created assertion object.
then
(long
the actual value.
actual
)

Creates a new instance of LongAssert.

public default LongAssert

Returns:

the created assertion object.
then
(Long
the actual value.
actual
)

Creates a new instance of LongAssert.

public default LongArrayAssert

Returns:

the created assertion object.
then
(long[]
the actual value.
actual
)

Creates a new instance of LongArrayAssert.

public default Long2DArrayAssert

Returns:

the created assertion object.
then
(long[][]
the actual value.
actual
)

Creates a new instance of Long2DArrayAssert.

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

Returns:

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

Creates a new instance of ObjectAssert.

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

Returns:

the created assertion object.
then
(T[]
the actual value.
actual
)

Creates a new instance of ObjectArrayAssert.

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

Returns:

the created assertion object.
then
(T[][]
the actual value.
actual
)

Creates a new instance of Object2DArrayAssert.

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

Returns:

the created assertion object.
then
(Map<K, V>
the actual value.
actual
)

Creates a new instance of MapAssert.

public default ShortAssert

Returns:

the created assertion object.
then
(short
the actual value.
actual
)

Creates a new instance of ShortAssert.

public default ShortAssert

Returns:

the created assertion object.
then
(Short
the actual value.
actual
)

Creates a new instance of ShortAssert.

public default ShortArrayAssert

Returns:

the created assertion object.
then
(short[]
the actual value.
actual
)

Creates a new instance of ShortArrayAssert.

public default Short2DArrayAssert

Returns:

the created assertion object.
then
(short[][]
the actual value.
actual
)

Creates a new instance of Short2DArrayAssert.

public default CharSequenceAssert

Returns:

the created assertion object.
then
(CharSequence
the actual value.
actual
)

Creates a new instance of CharSequenceAssert.

public default CharSequenceAssert

Returns:

the created assertion object.
then
(StringBuilder
the actual value.
actual
)

Creates a new instance of CharSequenceAssert from a StringBuilder.

public default CharSequenceAssert

Returns:

the created assertion object.
then
(StringBuffer
the actual value.
actual
)

Creates a new instance of CharSequenceAssert from a StringBuffer.

public default StringAssert

Returns:

the created assertion object.
then
(String
the actual value.
actual
)

Creates a new instance of StringAssert.

public default DateAssert

Returns:

the created assertion object.
then
(Date
the actual value.
actual
)

Creates a new instance of DateAssert.

public default AtomicBooleanAssert

Returns:

the created assertion object.
then
(AtomicBoolean
the actual value.
actual
)

Create assertion for AtomicBoolean.

public default AtomicIntegerAssert

Returns:

the created assertion object.
then
(AtomicInteger
the actual value.
actual
)

Create assertion for AtomicInteger.

public default AtomicIntegerArrayAssert

Returns:

the created assertion object.
then
(AtomicIntegerArray
the actual value.
actual
)

Create assertion for AtomicIntegerArray.

public default <
The type of the object holding the updatable field
OBJECT
>
AtomicIntegerFieldUpdaterAssert<OBJECT>

Returns:

the created assertion object.
then
(AtomicIntegerFieldUpdater<OBJECT>
the actual value.
actual
)

Create assertion for AtomicIntegerFieldUpdater.

public default AtomicLongAssert

Returns:

the created assertion object.
then
(AtomicLong
the actual value.
actual
)

Create assertion for AtomicLong.

public default AtomicLongArrayAssert

Returns:

the created assertion object.
then
(AtomicLongArray
the actual value.
actual
)

Create assertion for AtomicLongArray.

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

Returns:

the created assertion object.
then
(AtomicLongFieldUpdater<OBJECT>
the actual value.
actual
)

Create assertion for AtomicLongFieldUpdater.

public default <
the type of object referred to by this reference
VALUE
>
AtomicReferenceAssert<VALUE>

Returns:

the created assertion object.
then
(AtomicReference<VALUE>
the actual value.
actual
)

Create assertion for AtomicReference.

public default <
the type of object referred to by the AtomicReferenceArray.
ELEMENT
>
AtomicReferenceArrayAssert<ELEMENT>

Returns:

the created assertion object.
then
(AtomicReferenceArray<ELEMENT>
the actual value.
actual
)

Create assertion for AtomicReferenceArray.

public default <
The type of the field
FIELD
,
the type of the object holding the updatable field
OBJECT
>
AtomicReferenceFieldUpdaterAssert<FIELD, OBJECT>

Returns:

the created assertion object.
then
(AtomicReferenceFieldUpdater<OBJECT, FIELD>
the actual value.
actual
)

Create assertion for AtomicReferenceFieldUpdater.

public default <
the type of object referred to by this reference
VALUE
>
AtomicMarkableReferenceAssert<VALUE>

Returns:

the created assertion object.
then
(AtomicMarkableReference<VALUE>
the actual value.
actual
)

Create assertion for AtomicMarkableReference.

public default <
the type of value referred to by this reference
VALUE
>
AtomicStampedReferenceAssert<VALUE>

Returns:

the created assertion object.
then
(AtomicStampedReference<VALUE>
the actual value.
actual
)

Create assertion for AtomicStampedReference.

public default <
the type of the actual throwable.
T extends Throwable
>
ThrowableAssert<T>

Returns:

the created assertion Throwable.
then
(T
the actual value.
actual
)

Creates a new instance of ThrowableAssert.

public default UriAssert

Returns:

the created assertion object.
then
(URI
the actual value.
actual
)

Creates a new instance of UriAssert.

public default AbstractUrlAssert<?>

Returns:

the created assertion object.
then
(URL
the actual value.
actual
)

Creates a new instance of UrlAssert.

public default CharSequenceAssert

Returns:

the created assertion object.
thenCharSequence
(CharSequence
the actual value.
actual
)

Creates a new instance of CharSequenceAssert.

public default AbstractThrowableAssert<?, ? extends Throwable>

Returns:

The captured exception or null if none was raised by the callable.
thenCode
(ThrowableAssert.ThrowingCallable
The ThrowingCallable or lambda with the code that should raise the throwable.
shouldRaiseOrNotThrowable
)

Allows to capture and then assert on a Throwable more easily when used with Java 8 lambdas.

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

Returns:

the created assertion object.
thenCollection
(Collection<? extends E>
the actual value.
actual
)

Creates a new instance of CollectionAssert.

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

Returns:

the created assertion object.
thenComparable
(Comparable<T>
the actual value.
actual
)

Creates a new instance of UniversalComparableAssert with standard comparison semantics.

public default ThrowableTypeAssert<Exception>
public default <
the Throwable type.
T extends Throwable
>
ThrowableTypeAssert<T>

Returns:

the created ThrowableTypeAssert.
thenExceptionOfType
(final Class<T>
the Throwable type class.
throwableType
)

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 default ThrowableTypeAssert<IllegalArgumentException>
public default ThrowableTypeAssert<IllegalStateException>
public default ThrowableTypeAssert<IndexOutOfBoundsException>
public default ThrowableTypeAssert<IOException>
public default <
the type of elements.
ELEMENT
>
IterableAssert<ELEMENT>

Returns:

the created assertion object.
thenIterable
(Iterable<? extends ELEMENT>
the actual value.
actual
)

Creates a new instance of IterableAssert.

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

Returns:

the created assertion object.
thenIterator
(Iterator<? extends ELEMENT>
the actual value.
actual
)

Creates a new instance of IteratorAssert.

public default <
the type of elements.
ELEMENT
>
ListAssert<ELEMENT>

Returns:

the created assertion object.
thenList
(List<? extends ELEMENT>
the actual value.
actual
)

Creates a new instance of ListAssert.

public default ThrowableTypeAssert<NullPointerException>
public default <
the type of the actual value.
T
>
ObjectAssert<T>

Returns:

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

Creates a new instance of org.assertj.core.api.ObjectAssert for any object.

public default ThrowableTypeAssert<ReflectiveOperationException>
public default ThrowableTypeAssert<RuntimeException>
public default AbstractThrowableAssert<?, ? extends Throwable>

Returns:

The captured exception or null if none was raised by the callable.
thenThrownBy
(ThrowableAssert.ThrowingCallable
The ThrowingCallable or lambda with the code that should raise the throwable.
shouldRaiseThrowable
)

Allows to capture and then assert on a Throwable more easily when used with Java 8 lambdas.

public default AbstractThrowableAssert<?, ? extends Throwable>

Returns:

the created ThrowableAssert.
thenThrownBy
(ThrowableAssert.ThrowingCallable
The ThrowingCallable or lambda with the code that should raise the throwable.
shouldRaiseThrowable
,
String
the new description to set.
description
,
Object...
optional parameter if description is a format String.
args
)

Allows to capture and then assert on a Throwable like thenThrownBy(ThrowingCallable) but this method let you set the assertion description the same way you do with as(String, Object...).

Inherited from org.assertj.core.api.SoftAssertionsProvider:
assertAllassertAlsoassertSoftlycheckproxy