Top Interfaces Classes
[default module]

Package org.assertj.core.api


Interface Summary

Modifier and TypeInterface and Description
public interface
public interface
Array2DAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends Array2DAssert<SELF, ELEMENT>
,
the type of elements of the "actual" value.
ELEMENT
>

Assertions applicable to two-dimensional arrays.

public interface
ArraySortedAssert<
the "self" type of this assertion class that must be a array type (e.g. arrays, collections).
Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends ArraySortedAssert<SELF, ELEMENT>
,
the array element type.
ELEMENT
>

Assertions applicable to primitive arrays or arrays of elements either naturally Comparable or according to a given Comparator.

public interface
Assert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends Assert<SELF, ACTUAL>
,
the type of the "actual" value.
ACTUAL
>

Base contract of all assertion objects: the minimum functionality that any assertion object should provide.

public interface
AssertDelegateTarget

A marker interface that can be used to wrap your assertion within assertThat method for better readability.

public interface
AssertFactory<
the type of the given value.
T
,
the type of the resulting Assert.
ASSERT extends Assert<?, ?>
>

A factory that creates an Assert instance for a given value of type T.

public interface
public interface
AssertionInfo

Information about an assertion.

public interface
AssertJProxySetup

Interface implemented by all proxies and serves as a type safe setter.

public interface
AssertProvider<
the type of the assert (not typed - to allow any kind of assert)
A
>

Provides a Assert for the current object.

public interface
AutoCloseableSoftAssertionsProvider

Parent interface for soft assertion implementations.

public interface
public interface
ComparableAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends ComparableAssert<SELF, ACTUAL>
,
the type of the "actual" value.
ACTUAL extends Comparable<? super ACTUAL>
>

Assertion methods applicable to Comparables.

public interface
Descriptable<
the "self" type of this assertion class.
SELF
>

An object that has a description.

public interface
EnumerableAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends EnumerableAssert<SELF, ELEMENT>
,
the type of elements of the "actual" value.
ELEMENT
>

Assertions applicable to groups of values that can be enumerated (e.g. arrays, collections or strings.)

public interface
ExtensionPoints<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends ExtensionPoints<SELF, ACTUAL>
,
the type of the "actual" value.
ACTUAL
>

Mechanism for extending assertion classes.

public interface
FloatingPointNumberAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends FloatingPointNumberAssert<SELF, ACTUAL>
,
the type of the "actual" value.
ACTUAL extends Number
>

Assertion methods applicable to floating-point Numbers.

public interface
IndexedObjectEnumerableAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends IndexedObjectEnumerableAssert<SELF, ELEMENT>
,
the type of elements of the "actual" value.
ELEMENT
>

Assertions methods applicable to indexed groups of objects (e.g. arrays or lists.)

public interface
public interface
Java6BDDSoftAssertionsProvider

AbstractBDDSoftAssertions compatible with Android.

public interface
Java6StandardSoftAssertionsProvider

AbstractStandardSoftAssertions compatible with Android.

public interface
NumberAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends NumberAssert<SELF, ACTUAL>
,
the type of the "actual" value.
ACTUAL extends Number
>

Assertion methods applicable to Numbers.

public interface
ObjectEnumerableAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends ObjectEnumerableAssert<SELF, ELEMENT>
,
the type of elements of the "actual" value.
ELEMENT
>

Assertions methods applicable to groups of objects (e.g. arrays or collections.)

public interface
SoftAssertionsProvider

Parent interface for soft assertion implementations.

public interface
public interface
public interface
ThrowingConsumer<
consumed type
T
>

Consumer that deals with checked exceptions by rethrowing them as RuntimeException.

public interface
WithAssertions

A unified entry point to all non-deprecated assertions from both the new Java 8 core API and the pre-Java 8 core API.

public interface
WithAssumptions

A unified entry point to all assumptions from both the new Java 8 core API and the pre-Java 8 core API.

Class Summary

Modifier and TypeClass and Description
public abstract class
Abstract2DArrayAssert<
the "self" type of this assertion class.
SELF extends Abstract2DArrayAssert<SELF, ACTUAL, ELEMENT>
,
the type of the "actual" value which is a two-dimensional Array of ELEMENT.
ACTUAL
,
the type of the "actual" array element.
ELEMENT
>

Base class for all two-dimensional array assertions.

public abstract class
AbstractArrayAssert<
the "self" type of this assertion class.
SELF extends AbstractArrayAssert<SELF, ACTUAL, ELEMENT>
,
the type of the "actual" value which is an Array of ELEMENT.
ACTUAL
,
the type of the "actual" array element.
ELEMENT
>

Base class for all array assertions.

public abstract class
AbstractAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractAssert<SELF, ACTUAL>
,
the type of the "actual" value.
ACTUAL
>

Base class for all assertions.

public abstract class
AbstractAtomicFieldUpdaterAssert<
the "self" type of this assertion class.
SELF extends AbstractAtomicFieldUpdaterAssert<SELF, VALUE, ATOMIC, OBJECT>
,
the type of the "actual" value.
VALUE
,
the type of the "actual" atomic.
ATOMIC
,
the type of the object holding the updatable field.
OBJECT
>

Base class for all fieldupdater assertions.

public abstract class
AbstractAtomicReferenceAssert<
the "self" type of this assertion class.
SELF extends AbstractAtomicReferenceAssert<SELF, VALUE, ATOMIC>
,
the type of the "actual" value.
VALUE
,
the type of the "actual" atomic.
ATOMIC
>

Base class for atomic assertions.

public abstract class
AbstractBigDecimalAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractBigDecimalAssert<SELF>
>

Base class for all implementations of assertions for BigDecimals.

public abstract class
AbstractBigDecimalScaleAssert<SELF extends AbstractBigDecimalAssert<SELF>>

Base class for BigDecimal scale assertions.

public class
AbstractBigIntegerAssert<SELF extends AbstractBigIntegerAssert<SELF>>

Base class for all implementations of assertions for BigIntegers.

public abstract class
public abstract class
AbstractBooleanAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractBooleanAssert<SELF>
>

Base class for all implementations of assertions for Booleans.

public abstract class
public abstract class
AbstractByteAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractByteAssert<SELF>
>

Base class for all implementations of assertions for Bytes.

public abstract class
AbstractCharacterAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractCharacterAssert<SELF>
>

Base class for all implementations of assertions for Characters.

public abstract class
public abstract class
AbstractCharSequenceAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractCharSequenceAssert<SELF, ACTUAL>
,
the type of the "actual" value.
ACTUAL extends CharSequence
>

Base class for all implementations of assertions for CharSequences.

public abstract class
AbstractClassAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractClassAssert<SELF>
>

Base class for all implementations of assertions for Classes.

public abstract class
AbstractCollectionAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractCollectionAssert<SELF, ACTUAL, ELEMENT, ELEMENT_ASSERT>
,
the type of the "actual" value.
ACTUAL extends Collection<? extends ELEMENT>
,
the type of elements of the "actual" value.
ELEMENT
,
used for navigational assertions to return the right assert type.
ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>
>

Base class for all implementations of assertions for Collections.

public abstract class
AbstractComparableAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractComparableAssert<SELF, ACTUAL>
,
the type of the "actual" value.
ACTUAL extends Comparable<? super ACTUAL>
>

Base class for all implementations of ComparableAssert.

public abstract class
AbstractCompletableFutureAssert<SELF extends AbstractCompletableFutureAssert<SELF, RESULT>,
type of the value contained in the CompletableFuture.
RESULT
>

Assertions for CompletableFuture.

public abstract class
AbstractDateAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractDateAssert<SELF>
>

Base class for all implementations of assertions for Dates.

public abstract class
public abstract class
AbstractDoubleAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractDoubleAssert<SELF>
>

Base class for all implementations of assertions for Doubles.

public abstract class
AbstractDurationAssert<SELF extends AbstractDurationAssert<SELF>>

Assertions for Duration type.

public abstract class
AbstractEnumerableAssert<
the "self" type of this assertion class.
SELF extends AbstractEnumerableAssert<SELF, ACTUAL, ELEMENT>
,
the type of the "actual" value which is an Array of ELEMENT.
ACTUAL
,
the type of the "actual" array element.
ELEMENT
>

Base implementation for Enumerable class assertions.

public abstract class
AbstractFileAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractFileAssert<SELF>
>

Base class for all implementations of assertions for Files.

public abstract class
AbstractFileSizeAssert<SELF extends AbstractFileAssert<SELF>>

Base class for file size assertions.

public abstract class
public abstract class
AbstractFloatAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractFloatAssert<SELF>
>

Base class for all implementations of assertions for Floats.

public abstract class
AbstractFutureAssert<SELF extends AbstractFutureAssert<SELF, ACTUAL, RESULT>, ACTUAL extends Future<RESULT>, RESULT>

public abstract class
AbstractInputStreamAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractInputStreamAssert<SELF, ACTUAL>
,
the type of the "actual" value.
ACTUAL extends InputStream
>

Base class for all implementations of assertions for InputStreams.

public class
AbstractInstantAssert<
the "self" type of this assertion class.
SELF extends AbstractInstantAssert<SELF>
>

Assertions for Instant type from new Date & Time API introduced in Java 8.

public abstract class
public abstract class
AbstractIntegerAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractIntegerAssert<SELF>
>

Base class for all implementations of assertions for Integers.

public abstract class
AbstractIterableAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractIterableAssert<SELF, ACTUAL, ELEMENT, ELEMENT_ASSERT>
,
the type of the "actual" value.
ACTUAL extends Iterable<? extends ELEMENT>
,
the type of elements of the "actual" value.
ELEMENT
,
used for navigational assertions to return the right assert type.
ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>
>

Base class for implementations of ObjectEnumerableAssert whose actual value type is Collection.

public abstract class
AbstractIterableSizeAssert<SELF extends AbstractIterableAssert<SELF, ACTUAL, ELEMENT, ELEMENT_ASSERT>, ACTUAL extends Iterable<? extends ELEMENT>, ELEMENT, ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>>

public abstract class
AbstractIteratorAssert<
the "self" type of this assertion class.
SELF extends AbstractIteratorAssert<SELF, ELEMENT>
,
the type of elements.
ELEMENT
>

Base class for all implementations of assertions for Iterators.

public abstract class
AbstractListAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractListAssert<SELF, ACTUAL, ELEMENT, ELEMENT_ASSERT>
,
the type of the "actual" value.
ACTUAL extends List<? extends ELEMENT>
,
the type of elements of the "actual" value.
ELEMENT
,
used for navigational assertions to return the right assert type.
ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>
>

Base class for all implementations of assertions for Lists.

public abstract class
AbstractLocalDateAssert<
the "self" type of this assertion class.
SELF extends AbstractLocalDateAssert<SELF>
>

Assertions for LocalDate type from new Date & Time API introduced in Java 8.

public abstract class
AbstractLocalDateTimeAssert<
the "self" type of this assertion class.
SELF extends AbstractLocalDateTimeAssert<SELF>
>

Assertions for LocalDateTime type from new Date & Time API introduced in Java 8.

public abstract class
AbstractLocalTimeAssert<SELF extends AbstractLocalTimeAssert<SELF>>

Assertions for LocalTime type from new Date & Time API introduced in Java 8.

public class
AbstractLongAdderAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractLongAdderAssert<SELF>
>

Base class for all implementations of assertions for LongAdders.

public abstract class
public abstract class
AbstractLongAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractLongAssert<SELF>
>

Base class for all implementations of assertions for Longs.

public abstract class
AbstractMapAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractMapAssert<SELF, ACTUAL, K, V>
,
the type of the "actual" value.
ACTUAL extends Map<K, V>
,
the type of keys in the map.
K
,
the type of values in the map.
V
>

Base class for all implementations of assertions for Maps.

public abstract class
AbstractMapSizeAssert<SELF extends AbstractMapAssert<SELF, A, KEY, VALUE>, A extends Map<KEY, VALUE>, KEY, VALUE>

public abstract class
public abstract class
AbstractObjectArrayAssert<SELF extends AbstractObjectArrayAssert<SELF, ELEMENT>,
the type of elements of the "actual" value.
ELEMENT
>

Assertion methods for arrays of objects.

public abstract class
AbstractObjectAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractObjectAssert<SELF, ACTUAL>
,
the type of the "actual" value.
ACTUAL
>

Base class for all implementations of assertions for Objects.

public abstract class
AbstractOffsetDateTimeAssert<
the "self" type of this assertion class.
SELF extends AbstractOffsetDateTimeAssert<SELF>
>

Assertions for java.time.OffsetDateTime type from new Date & Time API introduced in Java 8.

public abstract class
AbstractOffsetTimeAssert<SELF extends AbstractOffsetTimeAssert<SELF>>

Assertions for java.time.OffsetTime type from new Date & Time API introduced in Java 8.

public abstract class
AbstractOptionalAssert<
the "self" type of this assertion class.
SELF extends AbstractOptionalAssert<SELF, VALUE>
,
type of the value contained in the java.util.Optional.
VALUE
>

Assertions for java.util.Optional.

public abstract class
public abstract class
public abstract class
public abstract class
AbstractPathAssert<
self type
SELF extends AbstractPathAssert<SELF>
>

Assertions for Path objects

Note that some assertions have two versions: a normal one and a "raw" one (for instance, hasParent() and hasParentRaw().

public abstract class
AbstractPeriodAssert<SELF extends AbstractPeriodAssert<SELF>>

Assertions for Period type.

public abstract class
AbstractPredicateAssert<SELF extends AbstractPredicateAssert<SELF, T>,
type of the value contained in the Predicate.
T
>

Assertions for Predicate.

pack-priv abstract class
AbstractPredicateLikeAssert<SELF extends AbstractPredicateLikeAssert<SELF, PRIMITIVE_PREDICATE, PRIMITIVE>,
the actual type
PRIMITIVE_PREDICATE
,
the type of the wrapped variable in one of the special predicates
PRIMITIVE
>

Assertions for Predicate.

public abstract class
public abstract class
AbstractShortAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractShortAssert<SELF>
>

Base class for all implementations of assertions for Shorts.

public abstract class
public class
AbstractSpliteratorAssert<
the "self" type of this assertion class.
SELF extends AbstractSpliteratorAssert<SELF, ELEMENT>
,
the type of elements.
ELEMENT
>

Assertions for Spliterator type.

public class
public abstract class
AbstractTemporalAssert<SELF extends AbstractTemporalAssert<SELF, TEMPORAL>, TEMPORAL extends Temporal>

Base class for all implementations of assertions for Temporals.

public abstract class
AbstractThrowableAssert<
the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
SELF extends AbstractThrowableAssert<SELF, ACTUAL>
,
the type of the "actual" value.
ACTUAL extends Throwable
>

Base class for all implementations of assertions for Throwables.

public abstract class
AbstractUniversalComparableAssert<SELF extends AbstractUniversalComparableAssert<SELF, T>, T>

Base class for Comparable assertions.

public abstract class
AbstractUriAssert<
the "self" type of this assertion class.
SELF extends AbstractUriAssert<SELF>
>

Base class for all implementations of assertions for URIs.

public abstract class
AbstractUrlAssert<
the "self" type of this assertion class.
SELF extends AbstractUrlAssert<SELF>
>

Base class for all implementations of assertions for URLs.

public abstract class
AbstractYearMonthAssert<
the "self" type of this assertion class.
SELF extends AbstractYearMonthAssert<SELF>
>

Base class for all implementations of assertions for YearMonth type from new Date & Time API introduced in Java 8.

public abstract class
public class
Assertions

Entry point for assertion methods for different types.

public class
AssertionsForClassTypes

Java 8 is picky when choosing the right assertThat method if the object under test is generic and bounded, for example if foo is instance of T that extends Exception, java 8 will complain that it can't resolve the proper assertThat method (normally assertThat(Throwable) as foo might implement an interface like List, if that occurred assertThat(List) would also be a possible choice - thus confusing java 8.

public class
AssertionsForInterfaceTypes

Entry point for assertion methods for different data types.

public class
AssumptionExceptionFactory

Responsible for building the exception to throw for failing assumptions.

public class
Assumptions

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

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

Assertion methods for AtomicIntegerFieldUpdaters.

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

Assertion methods for AtomicLongFieldUpdaters.

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

Assertion methods for AtomicReferenceFieldUpdaters.

public class
public class
AutoCloseableBDDSoftAssertions

A version of BDDSoftAssertions that uses try-with-resources statement to automatically call BDDSoftAssertions#assertAll() so that you don't forget to.

public class
AutoCloseableSoftAssertions

A version of SoftAssertions that uses try-with-resources statement to automatically call SoftAssertions#assertAll() so that you don't forget to.

public class
BDDAssertions

Behavior-driven development style entry point for assertion methods for different types.

public class
BDDAssumptions

Behavior-driven development style entry point for assumption methods for different types, which allow to skip test execution when assumptions are not met.

public class
BDDSoftAssertions

Suppose we have a test case and in it we'd like to make numerous BDD assertions.

public class
BigDecimalAssert

Assertion methods for BigDecimals.

public class
public class
BigIntegerAssert

Assertion methods for BigIntegers.

public class
Boolean2DArrayAssert

Assertion methods for two-dimensional arrays of booleans.

public class
BooleanArrayAssert

Assertion methods for arrays of booleans.

public class
BooleanAssert

Assertion methods for Booleans.

public class
Byte2DArrayAssert

Assertion methods for two-dimensional arrays of bytes.

public class
ByteArrayAssert

Assertion methods for arrays of bytes.

public class
ByteAssert

Assertion methods for Bytes.

public class
Char2DArrayAssert

Assertion methods for two-dimensional arrays of chars.

public class
CharacterAssert

Assertion methods for Characters.

public class
CharArrayAssert

Assertion methods for arrays of chars.

public class
CharSequenceAssert

Assertion methods for CharSequences.

public class
ClassAssert

Assertion methods for Classes.

public class
ClassBasedNavigableIterableAssert<SELF extends ClassBasedNavigableIterableAssert<SELF, ACTUAL, ELEMENT, ELEMENT_ASSERT>, ACTUAL extends Iterable<? extends ELEMENT>, ELEMENT, ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>>

Build the Assert instance by reflection.

public class
ClassBasedNavigableListAssert<SELF extends ClassBasedNavigableListAssert<SELF, ACTUAL, ELEMENT, ELEMENT_ASSERT>, ACTUAL extends List<? extends ELEMENT>, ELEMENT, ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>>

Build the Assert instance by reflection.

pack-priv class
public class
CollectionAssert<
the type of elements of the "actual" value.
ELEMENT
>

Assertion methods for Collections.

public class
public class
CompletableFutureAssert<
type of the value contained in the CompletableFuture.
RESULT
>

Assertions for CompletableFuture.

public class
Condition<
the type of object this condition accepts.
T
>

A condition to be met by an object.

public class
DateAssert

Assertions for Dates.

public class
public class
Double2DArrayAssert

Assertion methods for two-dimensional arrays of doubles.

public class
DoubleArrayAssert

Assertion methods for arrays of doubles.

public class
DoubleAssert

Assertion methods for Doubles.

public class
public class
DurationAssert

Assertion methods for Duration

public class
ErrorCollector

Collects error messages of all AssertionErrors thrown by the proxied method.

public class
FactoryBasedNavigableIterableAssert<SELF extends FactoryBasedNavigableIterableAssert<SELF, ACTUAL, ELEMENT, ELEMENT_ASSERT>, ACTUAL extends Iterable<? extends ELEMENT>, ELEMENT, ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>>

Provides helper methods for navigating a list property in a generated assertion class so we can chain assertions through deeply nested models more easily.

public class
FactoryBasedNavigableListAssert<SELF extends FactoryBasedNavigableListAssert<SELF, ACTUAL, ELEMENT, ELEMENT_ASSERT>, ACTUAL extends List<? extends ELEMENT>, ELEMENT, ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>>

Provides helper methods for navigating a list property in a generated assertion class so we can chain assertions through deeply nested models more easily.

public class
Fail

Common failures.

public class
FileAssert

Assertion methods for Files.

public class
public class
Float2DArrayAssert

Reusable assertions for two-dimensional arrays of floats.

public class
FloatArrayAssert

Assertion methods for arrays of floats.

public class
FloatAssert

Assertion methods for floats.

public class
FutureAssert<
the type contained within the Future
RESULT
>

Assertion methods for Future.

public class
GenericComparableAssert<
the type of the "actual" value.
ACTUAL extends Comparable<? super ACTUAL>
>

Concrete generic ComparableAssert to be used through Assertions#assertThat(java.lang.Comparable).

public class
HamcrestCondition<T>

Allows to use a Hamcrest matcher as a condition.

public class
InputStreamAssert

Assertion methods for InputStreams.

public class
InstanceOfAssertFactory<
the type to use for the cast.
T
,
the type of the resulting Assert.
ASSERT extends AbstractAssert<?, ?>
>

AssertFactory decorator that casts the input value to the given type before invoking the decorated factory.

public class
InstantAssert

Assertion methods for Instants.

public class
Int2DArrayAssert

Assertion methods for two-dimensional arrays of ints.

public class
IntArrayAssert

Assertion methods for arrays of ints.

public class
IntegerAssert

Assertion methods for Integers.

public class
public class
IterableAssert<
the type of elements of the "actual" value.
ELEMENT
>

Assertion methods for Iterable.

public class
public class
IteratorAssert<
the type of elements of the "actual" value.
ELEMENT
>

Assertion methods for Iterator.

public class
Java6Assertions

Deprecated For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
public class
Java6BDDAssertions

Deprecated For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
public class
Java6BDDSoftAssertions

Deprecated For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
public class
Java6JUnitBDDSoftAssertions

Deprecated For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
public class
Java6JUnitSoftAssertions

Deprecated For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
public class
Java6SoftAssertions

Deprecated For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
public class
JUnitBDDSoftAssertions

Same as SoftAssertions, but with the following differences: First, it's a junit rule, which can be used without having to call assertAll(), example:

 public class SoftlyTest {

    @Rule
    public final JUnitBDDSoftAssertions softly = new JUnitBDDSoftAssertions();

    @Test
    public void soft_bdd_assertions() throws Exception {
      softly.then(1).isEqualTo(2);
      softly.then(Lists.newArrayList(1, 2)).containsOnly(1, 2);
    }
 }
public class
public class
public class
JUnitSoftAssertions

Same as SoftAssertions, but with the following differences: First, it's a junit rule, which can be used without having to call assertAll(), example:

 public class SoftlyTest {

    @Rule
    public final JUnitSoftAssertions softly = new JUnitSoftAssertions();

    @Test
    public void testSoftly() throws Exception {
      softly.assertThat(1).isEqualTo(2);
      softly.assertThat(Lists.newArrayList(1, 2)).containsOnly(1, 2);
    }
 }
public class
ListAssert<
the type of elements of the "actual" value.
ELEMENT
>

Assertion methods for Lists.

public class
public class
public class
public class
Long2DArrayAssert

Assertion methods for two-dimensional arrays of longs.

public class
LongAdderAssert

Assertions for LongAdder.

public class
LongArrayAssert

Assertion methods for arrays of longs.

public class
LongAssert

Assertion methods for Longs.

public class
public class
MapAssert<KEY, VALUE>

Assertions for Maps.

public class
MapSizeAssert<KEY, VALUE>

public class
public class
NotThrownAssert

Assertion class checking a ThrowingCallable throws no exception.

public class
Object2DArrayAssert<
the type of elements of the "actual" value.
ELEMENT
>

Assertion methods for two-dimensional arrays of objects.

public class
ObjectArrayAssert<
the type of elements of the "actual" value.
ELEMENT
>

Assertion methods for arrays of objects.

public class
ObjectAssert<
the type of the "actual" value.
ACTUAL
>

Assertion methods for Objects.

public class
public class
public class
public class
OptionalAssert<
type of the value contained in the java.util.Optional.
VALUE
>

Assertions for java.util.Optional.

public class
public class
public class
public class
PathAssert

Assertion class for Paths

public class
PeriodAssert

Assertion methods for java.time.Period

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

Assertions for Predicate.

public class
public class
RecursiveAssertionAssert

An assertion that supports asserting a Predicate over all the fields of an object graph.

public class
public class
Short2DArrayAssert

Assertion methods for arrays of shorts.

public class
ShortArrayAssert

Assertion methods for arrays of shorts.

public class
ShortAssert

Assertion methods for Shorts.

public class
SoftAssertionError

An AssertionError that contains the error messages of the one or more AssertionErrors that caused this exception to be thrown.

public class
SoftAssertions

Suppose we have a test case and in it we'd like to make numerous assertions.

pack-priv class
pack-priv class
public class
SoftThrowableAssertAlternative<ACTUAL extends Throwable>

ThrowableAssertAlternative subclass used in soft assertions.

public class
SoftThrowableTypeAssert<T extends Throwable>

ThrowableTypeAssert for soft assertions.

public class
SpliteratorAssert<
the type of elements.
ELEMENT
>

Assertion methods for Spliterators.

public class
StringAssert

Assertion methods for Strings.

public class
public class
ThrowableAssert<ACTUAL extends Throwable>

Assertion methods for Throwables.

public class
ThrowableAssertAlternative<ACTUAL extends Throwable>

Assertion methods for java.lang.Throwable similar to ThrowableAssert but with assertions methods named differently to make testing code fluent (ex : withMessage instead of hasMessage.

public class
ThrowableTypeAssert<
type of throwable to be thrown.
T extends Throwable
>

Assertion class checking Throwable type.

public class
public class
UriAssert

Assertion class for java.net.URIs

public class
UrlAssert

Assertion class for java.net.URLs

public class
public class
WritableAssertionInfo

Writable information about an assertion.

public class
YearMonthAssert

Assertions for YearMonth type from new Date & Time API introduced in Java 8.

public class
ZonedDateTimeAssert

Assertions for ZonedDateTime type from new Date & Time API introduced in Java 8.