| Interface | Description |
|---|---|
| ArraySortedAssert<S extends ArraySortedAssert<S,E>,E> |
Assertions applicable to primitive arrays or arrays of elements either naturally
Comparable or according to a given
Comparator. |
| Assert<S extends Assert<S,A>,A> |
Base contract of all assertion objects: the minimum functionality that any assertion object should provide.
|
| AssertDelegateTarget |
A marker interface that can be used to wrap your assertion within assertThat method for better readability.
|
| AssertFactory<T,ASSERT> |
A single method factory interface to create an
Assert class for a given type. |
| AssertionInfo |
Information about an assertion.
|
| AssertProvider<A> |
Provides a
Assert for the current object. |
| ComparableAssert<S extends ComparableAssert<S,A>,A extends Comparable<? super A>> |
Assertion methods applicable to
s. |
| Descriptable<S extends Descriptable<S>> |
An object that has a description.
|
| EnumerableAssert<S extends EnumerableAssert<S,E>,E> |
Assertions applicable to groups of values that can be enumerated (e.g.
|
| ExtensionPoints<S extends ExtensionPoints<S,A>,A> |
Mechanism for extending assertion classes.
|
| FloatingPointNumberAssert<S extends FloatingPointNumberAssert<S,A>,A extends Number> |
Assertion methods applicable to floating-point
s. |
| IndexedObjectEnumerableAssert<S extends IndexedObjectEnumerableAssert<S,T>,T> |
Assertions methods applicable to indexed groups of objects (e.g.
|
| NumberAssert<S extends NumberAssert<S,A>,A extends Number> |
Assertion methods applicable to
s. |
| ObjectEnumerableAssert<S extends ObjectEnumerableAssert<S,T>,T> |
Assertions methods applicable to groups of objects (e.g.
|
| ThrowableAssert.ThrowingCallable | |
| 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.
|
| Class | Description |
|---|---|
| AbstractArrayAssert<S extends AbstractArrayAssert<S,A,E>,A,E> |
Base class for all array assertions.
|
| AbstractAssert<S extends AbstractAssert<S,A>,A> |
Base class for all assertions.
|
| AbstractBDDSoftAssertions | |
| AbstractBigDecimalAssert<S extends AbstractBigDecimalAssert<S>> |
Base class for all implementations of assertions for
BigDecimals. |
| AbstractBooleanArrayAssert<S extends AbstractBooleanArrayAssert<S>> | |
| AbstractBooleanAssert<S extends AbstractBooleanAssert<S>> |
Base class for all implementations of assertions for
Booleans. |
| AbstractByteArrayAssert<S extends AbstractByteArrayAssert<S>> | |
| AbstractByteAssert<S extends AbstractByteAssert<S>> |
Base class for all implementations of assertions for
Bytes. |
| AbstractCharacterAssert<S extends AbstractCharacterAssert<S>> |
Base class for all implementations of assertions for
Characters. |
| AbstractCharArrayAssert<S extends AbstractCharArrayAssert<S>> | |
| AbstractCharSequenceAssert<S extends AbstractCharSequenceAssert<S,A>,A extends CharSequence> |
Base class for all implementations of assertions for
CharSequences. |
| AbstractClassAssert<S extends AbstractClassAssert<S>> |
Base class for all implementations of assertions for
Classes. |
| AbstractComparableAssert<S extends AbstractComparableAssert<S,A>,A extends Comparable<? super A>> |
Base class for all implementations of
. |
| AbstractCompletableFutureAssert<S extends AbstractCompletableFutureAssert<S,T>,T> |
Assertions for
CompletableFuture. |
| AbstractDateAssert<S extends AbstractDateAssert<S>> |
Base class for all implementations of assertions for
Dates. |
| AbstractDoubleArrayAssert<S extends AbstractDoubleArrayAssert<S>> | |
| AbstractDoubleAssert<S extends AbstractDoubleAssert<S>> |
Base class for all implementations of assertions for
Doubles. |
| AbstractEnumerableAssert<S extends AbstractEnumerableAssert<S,A,E>,A,E> |
Base implementation for Enumerable class assertions.
|
| AbstractFileAssert<S extends AbstractFileAssert<S>> |
Base class for all implementations of assertions for
Files. |
| AbstractFloatArrayAssert<S extends AbstractFloatArrayAssert<S>> | |
| AbstractFloatAssert<S extends AbstractFloatAssert<S>> |
Base class for all implementations of assertions for
Floats. |
| AbstractInputStreamAssert<S extends AbstractInputStreamAssert<S,A>,A extends InputStream> |
Base class for all implementations of assertions for
InputStreams. |
| AbstractIntArrayAssert<S extends AbstractIntArrayAssert<S>> | |
| AbstractIntegerAssert<S extends AbstractIntegerAssert<S>> |
Base class for all implementations of assertions for
Integers. |
| AbstractIterableAssert<SELF extends AbstractIterableAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Base class for implementations of
whose actual value type is
. |
| AbstractIterableSizeAssert<SELF extends AbstractIterableAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> | |
| AbstractListAssert<SELF extends AbstractListAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Base class for all implementations of assertions for
Lists. |
| AbstractLocalDateAssert<S extends AbstractLocalDateAssert<S>> |
Assertions for
LocalDate type from new Date & Time API introduced in Java 8. |
| AbstractLocalDateTimeAssert<S extends AbstractLocalDateTimeAssert<S>> |
Assertions for
LocalDateTime type from new Date & Time API introduced in Java 8. |
| AbstractLocalTimeAssert<S extends AbstractLocalTimeAssert<S>> |
Assertions for
LocalTime type from new Date & Time API introduced in Java 8. |
| AbstractLongArrayAssert<S extends AbstractLongArrayAssert<S>> | |
| AbstractLongAssert<S extends AbstractLongAssert<S>> |
Base class for all implementations of assertions for
Longs. |
| AbstractMapAssert<S extends AbstractMapAssert<S,A,K,V>,A extends Map<K,V>,K,V> |
Base class for all implementations of assertions for
Maps. |
| AbstractMapSizeAssert<S extends AbstractMapAssert<S,A,K,V>,A extends Map<K,V>,K,V> | |
| AbstractObjectArrayAssert<S extends AbstractObjectArrayAssert<S,T>,T> |
Assertion methods for arrays of objects.
|
| AbstractObjectAssert<S extends AbstractObjectAssert<S,A>,A> |
Base class for all implementations of assertions for
Objects. |
| AbstractOffsetDateTimeAssert<S extends AbstractOffsetDateTimeAssert<S>> |
Assertions for
OffsetDateTime type from new Date & Time API introduced in Java 8. |
| AbstractOffsetTimeAssert<S extends AbstractOffsetTimeAssert<S>> |
Assertions for
OffsetTime type from new Date & Time API introduced in Java 8. |
| AbstractOptionalAssert<S extends AbstractOptionalAssert<S,T>,T> |
Assertions for
Optional. |
| AbstractOptionalDoubleAssert<S extends AbstractOptionalDoubleAssert<S>> |
Assertions for
OptionalDouble. |
| AbstractOptionalIntAssert<S extends AbstractOptionalIntAssert<S>> |
Assertions for
OptionalInt. |
| AbstractOptionalLongAssert<S extends AbstractOptionalLongAssert<S>> |
Assertions for
OptionalLong. |
| AbstractPathAssert<S extends AbstractPathAssert<S>> |
Assertions for
Path objects |
| AbstractPredicateAssert<SELF extends AbstractPredicateAssert<SELF,T>,T> |
Assertions for
Predicate. |
| AbstractShortArrayAssert<S extends AbstractShortArrayAssert<S>> | |
| AbstractShortAssert<S extends AbstractShortAssert<S>> |
Base class for all implementations of assertions for
Shorts. |
| AbstractSoftAssertions | |
| AbstractStandardSoftAssertions | |
| AbstractThrowableAssert<S extends AbstractThrowableAssert<S,A>,A extends Throwable> |
Base class for all implementations of assertions for
Throwables. |
| AbstractUriAssert<S extends AbstractUriAssert<S>> |
Base class for all implementations of assertions for
URIs. |
| AbstractUrlAssert<S extends AbstractUrlAssert<S>> |
Base class for all implementations of assertions for
URLs. |
| AbstractZonedDateTimeAssert<S extends AbstractZonedDateTimeAssert<S>> | |
| Assertions |
Entry point for assertion methods for different types.
|
| 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. |
| AssertionsForInterfaceTypes |
Entry point for assertion methods for different data types.
|
| AutoCloseableBDDSoftAssertions |
A version of
BDDSoftAssertions that uses try-with-resources statement to automatically call
BDDSoftAssertions.assertAll() so that you don't forget to. |
| AutoCloseableSoftAssertions |
A version of
SoftAssertions that uses try-with-resources statement to automatically call
SoftAssertions.assertAll() so that you don't forget to. |
| BDDAssertions |
Behavior-driven development style entry point for assertion methods for different types.
|
| BDDSoftAssertions |
Suppose we have a test case and in it we'd like to make numerous BDD assertions.
|
| BigDecimalAssert |
Assertion methods for
BigDecimals. |
| BooleanArrayAssert |
Assertion methods for arrays of
booleans. |
| BooleanAssert |
Assertion methods for
Booleans. |
| ByteArrayAssert |
Assertion methods for arrays of
bytes. |
| ByteAssert |
Assertion methods for
Bytes. |
| CharacterAssert |
Assertion methods for
Characters. |
| CharArrayAssert |
Assertion methods for arrays of
chars. |
| CharSequenceAssert |
Assertion methods for
CharSequences. |
| ClassAssert |
Assertion methods for
Classes. |
| 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.
|
| 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.
|
| ComparatorFactory | |
| CompletableFutureAssert<T> |
Assertions for
CompletableFuture. |
| Condition<T> |
A condition to be met by an object.
|
| DateAssert |
Assertions for
Dates. |
| DoubleArrayAssert |
Assertion methods for arrays of
doubles. |
| DoubleAssert |
Assertion methods for
Doubles. |
| DoublePredicateAssert |
Assertions for
Predicate. |
| ErrorCollector |
Collects error messages of all AssertionErrors thrown by the proxied method.
|
| 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.
|
| 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.
|
| Fail |
Common failures.
|
| FileAssert |
Assertion methods for
Files. |
| FloatArrayAssert |
Assertion methods for arrays of
floats. |
| FloatAssert |
Assertion methods for floats.
|
| GenericComparableAssert<A extends Comparable<? super A>> |
Concrete generic
to be used through Assertions.assertThat(java.lang.Comparable). |
| InputStreamAssert |
Assertion methods for
InputStreams. |
| IntArrayAssert |
Assertion methods for arrays of
ints. |
| IntegerAssert |
Assertion methods for
Integers. |
| IntPredicateAssert |
Assertions for
Predicate. |
| IterableAssert<ELEMENT> |
Assertion methods for
Iterable. |
| IterableSizeAssert<T> | |
| Java6AbstractBDDSoftAssertions |
AbstractBDDSoftAssertions compatible with Android.
|
| Java6AbstractStandardSoftAssertions |
AbstractStandardSoftAssertions compatible with Android.
|
| Java6Assertions |
Assertions compatible with Android.
|
| Java6BDDAssertions |
Android-compatible BDD-style assertions duplicated from
BDDAssertions. |
| Java6BDDSoftAssertions |
BDD-style Android-compatible soft assertions.
|
| Java6JUnitBDDSoftAssertions |
Duplicate of
JUnitBDDSoftAssertions compatible with Android. |
| Java6JUnitSoftAssertions |
JUnitSoftAssertions rule compatible with Android.
|
| Java6SoftAssertions |
Soft assertions compatible with Android.
|
| 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: |
| 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: |
| ListAssert<ELEMENT> |
Assertion methods for
Lists. |
| LocalDateAssert | |
| LocalDateTimeAssert | |
| LocalTimeAssert | |
| LongArrayAssert |
Assertion methods for arrays of
longs. |
| LongAssert |
Assertion methods for
Longs. |
| LongPredicateAssert |
Assertions for
LongPredicate. |
| MapAssert<K,V> |
Assertions for
Maps. |
| MapSizeAssert<K,V> | |
| ObjectArrayAssert<T> |
Assertion methods for arrays of objects.
|
| ObjectAssert<A> |
Assertion methods for
Objects. |
| ObjectAssertFactory<T> | |
| OffsetDateTimeAssert | |
| OffsetTimeAssert | |
| OptionalAssert<T> |
Assertions for
Optional. |
| OptionalDoubleAssert |
Assertions for
OptionalDouble. |
| OptionalIntAssert |
Assertions for
OptionalInt. |
| OptionalLongAssert |
Assertions for
OptionalLong. |
| PathAssert |
Assertion class for
Paths |
| PredicateAssert<T> |
Assertions for
Predicate. |
| ShortArrayAssert |
Assertion methods for arrays of
shorts. |
| ShortAssert |
Assertion methods for
Shorts. |
| SoftAssertionClassAssert |
Concrete assertions for
Classs without any final methods to allow proxying. |
| SoftAssertionIterableAssert<ELEMENT> |
Concrete assertions for
Iterables without any final methods to allow proxying. |
| SoftAssertionListAssert<ELEMENT> |
Concrete assertions for
Lists without any final methods to allow proxying. |
| SoftAssertionMapAssert<K,V> |
Concrete assertions for
Maps without any final methods to allow proxying. |
| SoftAssertionPredicateAssert<T> |
Concrete assertions for
Predicates without any final methods to allow proxying. |
| SoftAssertions |
Suppose we have a test case and in it we'd like to make numerous assertions.
|
| StringAssert |
Assertion methods for
Strings. |
| ThrowableAssert |
Assertion methods for
Throwables. |
| ThrowableAssertAlternative<T extends Throwable> |
Assertion methods for
Throwable similar to ThrowableAssert but with assertions methods named
differently to make testing code fluent (ex : withMessage instead of hasMessage. |
| ThrowableTypeAssert<T extends Throwable> |
Assertion class checking
Throwable type. |
| UriAssert |
Assertion class for
URIs |
| UrlAssert |
Assertion class for
URLs |
| WritableAssertionInfo |
Writable information about an assertion.
|
| ZonedDateTimeAssert |
Assertions for
ZonedDateTime type from new Date & Time API introduced in Java 8. |
| Error | Description |
|---|---|
| SoftAssertionError |
An AssertionError that contains the error messages of the one or more AssertionErrors that caused this exception to
be thrown.
|
Copyright © 2014–2017 AssertJ. All rights reserved.