Top Description Methods
org.assertj.core.api

public Interface Java6StandardSoftAssertionsProvider

extends SoftAssertionsProvider
Known Direct Subinterfaces
org.assertj.core.api.StandardSoftAssertionsProvider
Known Direct Implementers
org.assertj.core.api.Java6JUnitSoftAssertions, org.assertj.core.api.Java6SoftAssertions
Annotations
@CheckReturnValue
Static Imports
org.assertj.core.api.Assertions.catchThrowable

AbstractStandardSoftAssertions compatible with Android. Duplicated from StandardSoftAssertionsProvider.
Since
2.5.0 / 3.5.0
See Also
StandardSoftAssertionsProvider

Method Summary

Modifier and TypeMethod and Description
public default BigDecimalAssert

Returns:

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

Creates a new instance of BigDecimalAssert.

public default BigIntegerAssert

Returns:

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

Creates a new instance of BigInteger.

public default BooleanAssert

Returns:

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

Creates a new instance of BooleanAssert.

public default BooleanAssert

Returns:

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

Creates a new instance of BooleanAssert.

public default BooleanArrayAssert

Returns:

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

Creates a new instance of BooleanArrayAssert.

public default Boolean2DArrayAssert

Returns:

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

Creates a new instance of Boolean2DArrayAssert.

public default ByteAssert

Returns:

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

Creates a new instance of ByteAssert.

public default ByteAssert

Returns:

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

Creates a new instance of ByteAssert.

public default ByteArrayAssert

Returns:

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

Creates a new instance of ByteArrayAssert.

public default Byte2DArrayAssert

Returns:

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

Creates a new instance of Byte2DArrayAssert.

public default CharacterAssert

Returns:

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

Creates a new instance of CharacterAssert.

public default CharArrayAssert

Returns:

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

Creates a new instance of CharArrayAssert.

public default Char2DArrayAssert

Returns:

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

Creates a new instance of Char2DArrayAssert.

public default CharacterAssert

Returns:

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

Creates a new instance of CharacterAssert.

public default ClassAssert

Returns:

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

Creates a new instance of ClassAssert

public default <
the actual element's type.
T
>
CollectionAssert<T>

Returns:

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

Creates a new instance of CollectionAssert.

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

Returns:

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

Creates a new instance of GenericComparableAssert with standard comparison semantics.

public default <
the actual element's type.
T
>
IterableAssert<T>

Returns:

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

Creates a new instance of IterableAssert.

public default <
the actual element's type.
T
>
IteratorAssert<T>

Returns:

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

Creates a new instance of IteratorAssert.

public default DoubleAssert

Returns:

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

Creates a new instance of DoubleAssert.

public default DoubleAssert

Returns:

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

Creates a new instance of DoubleAssert.

public default DoubleArrayAssert

Returns:

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

Creates a new instance of DoubleArrayAssert.

public default Double2DArrayAssert

Returns:

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

Creates a new instance of Double2DArrayAssert.

public default FileAssert

Returns:

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

Creates a new instance of FileAssert.

public default <
the Future element type.
RESULT
>
FutureAssert<RESULT>

Returns:

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

Creates a new instance of FutureAssert.

public default InputStreamAssert

Returns:

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

Creates a new instance of InputStreamAssert.

public default FloatAssert

Returns:

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

Creates a new instance of FloatAssert.

public default FloatAssert

Returns:

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

Creates a new instance of FloatAssert.

public default FloatArrayAssert

Returns:

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

Creates a new instance of FloatArrayAssert.

public default Float2DArrayAssert

Returns:

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

Creates a new instance of Float2DArrayAssert.

public default IntegerAssert

Returns:

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

Creates a new instance of IntegerAssert.

public default IntArrayAssert

Returns:

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

Creates a new instance of IntArrayAssert.

public default Int2DArrayAssert

Returns:

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

Creates a new instance of Int2DArrayAssert.

public default IntegerAssert

Returns:

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

Creates a new instance of IntegerAssert.

public default <
the actual element's type.
T
>
ListAssert<T>

Returns:

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

Creates a new instance of ListAssert.

public default LongAssert

Returns:

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

Creates a new instance of LongAssert.

public default LongAssert

Returns:

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

Creates a new instance of LongAssert.

public default LongArrayAssert

Returns:

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

Creates a new instance of LongArrayAssert.

public default Long2DArrayAssert

Returns:

the created assertion object.
assertThat
(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.
assertThat
(T
the actual value.
actual
)

Creates a new instance of ObjectAssert.

public default <
the type values of the actual array.
T
>
ObjectArrayAssert<T>

Returns:

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

Creates a new instance of ObjectArrayAssert.

public default <
the type values of the actual array.
T
>
Object2DArrayAssert<T>

Returns:

the created assertion object.
assertThat
(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.
assertThat
(Map<K, V>
the actual value.
actual
)

Creates a new instance of MapAssert.

public default ShortAssert

Returns:

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

Creates a new instance of ShortAssert.

public default ShortAssert

Returns:

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

Creates a new instance of ShortAssert.

public default ShortArrayAssert

Returns:

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

Creates a new instance of ShortArrayAssert.

public default Short2DArrayAssert

Returns:

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

Creates a new instance of Short2DArrayAssert.

public default CharSequenceAssert

Returns:

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

Creates a new instance of CharSequenceAssert.

public default CharSequenceAssert

Returns:

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

Creates a new instance of CharSequenceAssert from a StringBuilder.

public default CharSequenceAssert

Returns:

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

Creates a new instance of CharSequenceAssert from a StringBuffer.

public default StringAssert

Returns:

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

Creates a new instance of StringAssert.

public default DateAssert

Returns:

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

Creates a new instance of DateAssert.

public default AtomicBooleanAssert

Returns:

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

Create assertion for AtomicBoolean.

public default AtomicIntegerAssert

Returns:

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

Create assertion for AtomicInteger.

public default AtomicIntegerArrayAssert

Returns:

the created assertion object.
assertThat
(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.
assertThat
(AtomicIntegerFieldUpdater<OBJECT>
the actual value.
actual
)

Create assertion for AtomicIntegerFieldUpdater.

public default AtomicLongAssert

Returns:

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

Create assertion for AtomicLong.

public default AtomicLongArrayAssert

Returns:

the created assertion object.
assertThat
(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.
assertThat
(AtomicLongFieldUpdater<OBJECT>
the actual value.
actual
)

Create assertion for AtomicLongFieldUpdater.

public default <
the type of object referred to by the AtomicReference.
VALUE
>
AtomicReferenceAssert<VALUE>

Returns:

the created assertion object.
assertThat
(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.
assertThat
(AtomicReferenceArray<ELEMENT>
the actual value.
actual
)

Create assertion for AtomicReferenceArray.

public default <
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 assertion object.
assertThat
(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.
assertThat
(AtomicMarkableReference<VALUE>
the actual value.
actual
)

Create assertion for AtomicMarkableReference.

public default <
The type of object referred to by this reference
VALUE
>
AtomicStampedReferenceAssert<VALUE>

Returns:

the created assertion object.
assertThat
(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.
assertThat
(T
the actual value.
actual
)

Creates a new instance of ThrowableAssert.

public default UriAssert

Returns:

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

Creates a new instance of UriAssert.

public default AbstractUrlAssert<?>

Returns:

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

Creates a new instance of UrlAssert.

public default CharSequenceAssert

Returns:

the created assertion object.
assertThatCharSequence
(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.
assertThatCode
(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.
T
>
CollectionAssert<T>

Returns:

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

Creates a new instance of CollectionAssert.

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

Returns:

the created assertion object.
assertThatComparable
(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.
assertThatExceptionOfType
(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.
assertThatIterable
(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.
assertThatIterator
(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.
assertThatList
(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.
assertThatObject
(T
the actual value.
actual
)

Creates a new instance of 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.
assertThatThrownBy
(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.
assertThatThrownBy
(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 assertThatThrownBy(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