Package org.assertj.core.api
package org.assertj.core.api
-
ClassDescriptionBase class for all array assertions.Base class for all assertions.AbstractAtomicFieldUpdaterAssert<SELF extends AbstractAtomicFieldUpdaterAssert<SELF,
VALUE, ATOMIC, OBJECT>, VALUE, ATOMIC, OBJECT> Base class for all fieldupdater assertions.AbstractAtomicReferenceAssert<SELF extends AbstractAtomicReferenceAssert<SELF,VALUE, ATOMIC>, VALUE, ATOMIC> Base class for atomic assertions.AbstractBigDecimalAssert<SELF extends AbstractBigDecimalAssert<SELF>>Base class for all implementations of assertions forBigDecimals.AbstractBigIntegerAssert<SELF extends AbstractBigIntegerAssert<SELF>>Base class for all implementations of assertions forBigIntegers.AbstractBooleanArrayAssert<SELF extends AbstractBooleanArrayAssert<SELF>>AbstractBooleanAssert<SELF extends AbstractBooleanAssert<SELF>>Base class for all implementations of assertions forBooleans.AbstractByteArrayAssert<SELF extends AbstractByteArrayAssert<SELF>>AbstractByteAssert<SELF extends AbstractByteAssert<SELF>>Base class for all implementations of assertions forBytes.AbstractCharacterAssert<SELF extends AbstractCharacterAssert<SELF>>Base class for all implementations of assertions forCharacters.AbstractCharArrayAssert<SELF extends AbstractCharArrayAssert<SELF>>AbstractCharSequenceAssert<SELF extends AbstractCharSequenceAssert<SELF,ACTUAL>, ACTUAL extends CharSequence> Base class for all implementations of assertions forCharSequences.AbstractClassAssert<SELF extends AbstractClassAssert<SELF>>Base class for all implementations of assertions forClasses.AbstractComparableAssert<SELF extends AbstractComparableAssert<SELF,ACTUAL>, ACTUAL extends Comparable<? super ACTUAL>> Base class for all implementations of.ComparableAssertAssertions forCompletableFuture.AbstractDateAssert<SELF extends AbstractDateAssert<SELF>>Base class for all implementations of assertions forDates.AbstractDoubleArrayAssert<SELF extends AbstractDoubleArrayAssert<SELF>>AbstractDoubleAssert<SELF extends AbstractDoubleAssert<SELF>>Base class for all implementations of assertions forDoubles.Base implementation for Enumerable class assertions.AbstractFileAssert<SELF extends AbstractFileAssert<SELF>>Base class for all implementations of assertions forFiles.AbstractFloatArrayAssert<SELF extends AbstractFloatArrayAssert<SELF>>AbstractFloatAssert<SELF extends AbstractFloatAssert<SELF>>Base class for all implementations of assertions forFloats.AbstractFutureAssert<SELF extends AbstractFutureAssert<SELF,ACTUAL, RESULT>, ACTUAL extends Future<RESULT>, RESULT> AbstractInputStreamAssert<SELF extends AbstractInputStreamAssert<SELF,ACTUAL>, ACTUAL extends InputStream> Base class for all implementations of assertions forInputStreams.AbstractInstantAssert<SELF extends AbstractInstantAssert<SELF>>Assertions forInstanttype from new Date & Time API introduced in Java 8.AbstractIntArrayAssert<SELF extends AbstractIntArrayAssert<SELF>>AbstractIntegerAssert<SELF extends AbstractIntegerAssert<SELF>>Base class for all implementations of assertions forIntegers.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 ofwhose actual value type isObjectEnumerableAssert.CollectionAbstractIterableSizeAssert<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 forLists.AbstractLocalDateAssert<SELF extends AbstractLocalDateAssert<SELF>>Assertions forLocalDatetype from new Date & Time API introduced in Java 8.AbstractLocalDateTimeAssert<SELF extends AbstractLocalDateTimeAssert<SELF>>Assertions forLocalDateTimetype from new Date & Time API introduced in Java 8.AbstractLocalTimeAssert<SELF extends AbstractLocalTimeAssert<SELF>>Assertions forLocalTimetype from new Date & Time API introduced in Java 8.AbstractLongArrayAssert<SELF extends AbstractLongArrayAssert<SELF>>AbstractLongAssert<SELF extends AbstractLongAssert<SELF>>Base class for all implementations of assertions forLongs.Base class for all implementations of assertions forMaps.AbstractMapSizeAssert<SELF extends AbstractMapAssert<SELF,A, KEY, VALUE>, A extends Map<KEY, VALUE>, KEY, VALUE> Assertion methods for arrays of objects.Base class for all implementations of assertions forObjects.AbstractOffsetDateTimeAssert<SELF extends AbstractOffsetDateTimeAssert<SELF>>Assertions forOffsetDateTimetype from new Date & Time API introduced in Java 8.AbstractOffsetTimeAssert<SELF extends AbstractOffsetTimeAssert<SELF>>Assertions forOffsetTimetype from new Date & Time API introduced in Java 8.Assertions forOptional.AbstractOptionalDoubleAssert<SELF extends AbstractOptionalDoubleAssert<SELF>>Assertions forOptionalDouble.AbstractOptionalIntAssert<SELF extends AbstractOptionalIntAssert<SELF>>Assertions forOptionalInt.AbstractOptionalLongAssert<SELF extends AbstractOptionalLongAssert<SELF>>Assertions forOptionalLong.AbstractPathAssert<SELF extends AbstractPathAssert<SELF>>Assertions forPathobjectsAssertions forPredicate.AbstractPredicateLikeAssert<SELF extends AbstractPredicateLikeAssert<SELF,PRIMITIVE_PREDICATE, PRIMITIVE>, PRIMITIVE_PREDICATE, PRIMITIVE> Assertions forPredicate.AbstractShortArrayAssert<SELF extends AbstractShortArrayAssert<SELF>>AbstractShortAssert<SELF extends AbstractShortAssert<SELF>>Base class for all implementations of assertions forShorts.AbstractTemporalAssert<SELF extends AbstractTemporalAssert<SELF,TEMPORAL>, TEMPORAL extends Temporal> Base class for all implementations of assertions forTemporals.Base class for all implementations of assertions forThrowables.AbstractUriAssert<SELF extends AbstractUriAssert<SELF>>Base class for all implementations of assertions forURIs.AbstractUrlAssert<SELF extends AbstractUrlAssert<SELF>>Base class for all implementations of assertions forURLs.AbstractZonedDateTimeAssert<SELF extends AbstractZonedDateTimeAssert<SELF>>Assertions applicable to primitive arrays or arrays of elements either naturallyComparableor according to a givenComparator.Base contract of all assertion objects: the minimum functionality that any assertion object should provide.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 anAssertclass for a given type.Information about an assertion.Entry point for assertion methods for different types.Java 8 is picky when choosing the rightassertThatmethod 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 properassertThatmethod (normallyassertThat(Throwable)as foo might implement an interface like List, if that occurredassertThat(List)would also be a possible choice - thus confusing java 8.Entry point for assertion methods for different data types.Provides aAssertfor the current object.AtomicIntegerFieldUpdaterAssert<OBJECT>Assertion methods forAtomicIntegerFieldUpdaters.AtomicLongFieldUpdaterAssert<OBJECT>Assertion methods forAtomicLongFieldUpdaters.Assertion methods forAtomicMarkableReferences.AtomicReferenceFieldUpdaterAssert<FIELD,OBJECT> Assertion methods forAtomicReferenceFieldUpdaters.AtomicStampedReferenceAssert<VALUE>Assertion methods forAtomicStampedReferences.A version ofBDDSoftAssertionsthat uses try-with-resources statement to automatically callBDDSoftAssertions.assertAll()so that you don't forget to.A version ofSoftAssertionsthat uses try-with-resources statement to automatically callSoftAssertions.assertAll()so that you don't forget to.Behavior-driven development style entry point for assertion methods for different types.Suppose we have a test case and in it we'd like to make numerous BDD assertions.Assertion methods forBigDecimals.Assertion methods forBigIntegers.Assertion methods for arrays ofbooleans.Assertion methods forBooleans.Assertion methods for arrays ofbytes.Assertion methods forBytes.Assertion methods forCharacters.Assertion methods for arrays ofchars.Assertion methods forCharSequences.Assertion methods forClasses.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.ComparableAssert<SELF extends ComparableAssert<SELF,ACTUAL>, ACTUAL extends Comparable<? super ACTUAL>> Assertion methods applicable tos.ComparableCompletableFutureAssert<RESULT>Assertions forCompletableFuture.Condition<T>A condition to be met by an object.Assertions forDates.Descriptable<SELF extends Descriptable<SELF>>An object that has a description.Assertion methods for arrays ofdoubles.Assertion methods forDoubles.Assertions forPredicate.Assertions applicable to groups of values that can be enumerated (e.g.Collects error messages of all AssertionErrors thrown by the proxied method.Mechanism for extending assertion classes.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.Common failures.Assertion methods forFiles.Assertion methods for arrays offloats.Assertion methods for floats.FloatingPointNumberAssert<SELF extends FloatingPointNumberAssert<SELF,ACTUAL>, ACTUAL extends Number> Assertion methods applicable to floating-points.NumberFutureAssert<RESULT>Assertion methods forFuture.GenericComparableAssert<ACTUAL extends Comparable<? super ACTUAL>>Concrete genericto be used throughComparableAssertAssertions.assertThat(java.lang.Comparable).Assertions methods applicable to indexed groups of objects (e.g.Assertion methods forInputStreams.Assertion methods forInstants.Assertion methods for arrays ofints.Assertion methods forIntegers.Assertions forPredicate.IterableAssert<ELEMENT>Assertion methods forIterable.AbstractBDDSoftAssertions compatible with Android.AbstractStandardSoftAssertions compatible with Android.Assertions compatible with Android.Android-compatible BDD-style assertions duplicated fromBDDAssertions.BDD-style Android-compatible soft assertions.Duplicate ofJUnitBDDSoftAssertionscompatible with Android.JUnitSoftAssertions rule compatible with Android.Soft assertions compatible with Android.Same asSoftAssertions, but with the following differences:
First, it's a junit rule, which can be used without having to callassertAll(), example:Same asSoftAssertions, but with the following differences:
First, it's a junit rule, which can be used without having to callassertAll(), example:ListAssert<ELEMENT>Assertion methods forLists.ListAssert.ListFromStream<ELEMENT,STREAM extends BaseStream<ELEMENT, STREAM>> Assertion methods for arrays oflongs.Assertion methods forLongs.Assertions forLongPredicate.MapAssert<KEY,VALUE> Assertions forMaps.MapSizeAssert<KEY,VALUE> Assertion methods applicable tos.NumberObjectArrayAssert<ELEMENT>Assertion methods for arrays of objects.ObjectAssert<ACTUAL>Assertion methods forObjects.Assertions methods applicable to groups of objects (e.g.OptionalAssert<VALUE>Assertions forOptional.Assertions forOptionalDouble.Assertions forOptionalInt.Assertions forOptionalLong.Assertion class forPathsAssertions forPredicate.Assertion methods for arrays ofshorts.Assertion methods forShorts.Concrete assertions forClasss without any final methods to allow proxying.An AssertionError that contains the error messages of the one or more AssertionErrors that caused this exception to be thrown.SoftAssertionIterableAssert<ELEMENT>Concrete assertions forIterables without any final methods to allow proxying.SoftAssertionListAssert<ELEMENT>Concrete assertions forLists without any final methods to allow proxying.SoftAssertionMapAssert<KEY,VALUE> Concrete assertions forMaps without any final methods to allow proxying.Concrete assertions forPredicates without any final methods to allow proxying.Suppose we have a test case and in it we'd like to make numerous assertions.Assertion methods forStrings.Assertion methods forThrowables.ThrowableAssertAlternative<T extends Throwable>Assertion methods forThrowablesimilar toThrowableAssertbut with assertions methods named differently to make testing code fluent (ex :withMessageinstead ofhasMessage.ThrowableTypeAssert<T extends Throwable>Assertion class checkingThrowabletype.Assertion class forURIsAssertion class forURLsA unified entry point to all non-deprecated assertions from both the new Java 8 core API and the pre-Java 8 core API.Writable information about an assertion.Assertions forZonedDateTimetype from new Date & Time API introduced in Java 8.