Package org.assertj.core.api
package org.assertj.core.api
-
ClassDescriptionBase class for all two-dimensional array assertions.Base 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.AbstractBigDecimalScaleAssert<SELF extends AbstractBigDecimalAssert<SELF>>Base class for BigDecimal scale assertions.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.AbstractCollectionAssert<SELF extends AbstractCollectionAssert<SELF,ACTUAL, ELEMENT, ELEMENT_ASSERT>, ACTUAL extends Collection<? extends ELEMENT>, ELEMENT, ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>> Base class for all implementations of assertions forCollections.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.AbstractDurationAssert<SELF extends AbstractDurationAssert<SELF>>Assertions forDurationtype.Base implementation for Enumerable class assertions.AbstractFileAssert<SELF extends AbstractFileAssert<SELF>>Base class for all implementations of assertions forFiles.AbstractFileSizeAssert<SELF extends AbstractFileAssert<SELF>>Base class for file size assertions.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>> Base class for all implementations of assertions forIterators.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.AbstractLongAdderAssert<SELF extends AbstractLongAdderAssert<SELF>>Base class for all implementations of assertions forLongAdders.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> AbstractMatcherAssert<SELF extends AbstractMatcherAssert<SELF>>Assertions forMatcherAssertion 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 forPathobjectsAbstractPeriodAssert<SELF extends AbstractPeriodAssert<SELF>>Assertions forPeriodtype.Assertions forPredicate.AbstractShortArrayAssert<SELF extends AbstractShortArrayAssert<SELF>>AbstractShortAssert<SELF extends AbstractShortAssert<SELF>>Base class for all implementations of assertions forShorts.Assertions forSpliteratortype.AbstractStringAssert<SELF extends AbstractStringAssert<SELF>>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.Base class forComparableassertions.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.AbstractYearMonthAssert<SELF extends AbstractYearMonthAssert<SELF>>Base class for all implementations of assertions forYearMonthtype from new Date & Time API introduced in Java 8.AbstractZonedDateTimeAssert<SELF extends AbstractZonedDateTimeAssert<SELF>>Assertions applicable to two-dimensional arrays.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 extends Assert<?, ?>> A factory that creates anAssertinstance for a given value of typeAssertFactory.A provider that provides a value compatible with a givenType.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.Interface implemented by all proxies and serves as a type safe setter.Provides aAssertfor the current object.Responsible for building the exception to throw for failing assumptions.Entry point for assumption methods for different types, which allow to skip test execution on failed assumptions.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 callAbstractSoftAssertions.assertAll()so that you don't forget to.A version ofSoftAssertionsthat uses try-with-resources statement to automatically callAbstractSoftAssertions.assertAll()so that you don't forget to.Parent interface for soft assertion implementations.Behavior-driven development style entry point for assertion methods for different types.Behavior-driven development style entry point for assumption methods for different types, which allow to skip test execution when assumptions are not met.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 two-dimensional arrays ofbooleans.Assertion methods for arrays ofbooleans.Assertion methods forBooleans.Assertion methods for two-dimensional arrays ofbytes.Assertion methods for arrays ofbytes.Assertion methods forBytes.Assertion methods for two-dimensional arrays ofchars.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>> Deprecated.ClassBasedNavigableListAssert<SELF extends ClassBasedNavigableListAssert<SELF,ACTUAL, ELEMENT, ELEMENT_ASSERT>, ACTUAL extends List<? extends ELEMENT>, ELEMENT, ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>> Deprecated.UseFactoryBasedNavigableListAssertinstead.CollectionAssert<ELEMENT>Assertion methods forCollections.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.Describes the condition status after being evaluated.Assertions forDates.Descriptable<SELF>An object that has a description.Assertion methods for two-dimensional arrays ofdoubles.Assertion methods for arrays ofdoubles.Assertion methods forDoubles.Assertions forPredicate.Assertion methods forDurationAssertions 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.Reusable assertions for two-dimensional arrays offloats.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).Allows to use a Hamcrest matcher as a condition.Assertions methods applicable to indexed groups of objects (e.g.Assertion methods forInputStreams.InstanceOfAssertFactoryinstances for Java types.InstanceOfAssertFactory<T,ASSERT extends AbstractAssert<?, ?>> AssertFactorydecorator that casts the input value to the given type before invoking the decorated factory.Assertion methods forInstants.Assertion methods for two-dimensional arrays ofints.Assertion methods for arrays ofints.Assertion methods forIntegers.Assertions forPredicate.IterableAssert<ELEMENT>Assertion methods forIterable.IteratorAssert<ELEMENT>Assertion methods forIterator.Deprecated.For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.Deprecated.For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.Deprecated.For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.AbstractBDDSoftAssertions compatible with Android.Deprecated.For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.Deprecated.For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.Deprecated.For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.AbstractStandardSoftAssertions 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:Deprecated.useSoftAssertionsExtensioninstead.Deprecated.useSoftAssertionsExtensioninstead.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.Assertion methods for two-dimensional arrays oflongs.Assertions forLongAdder.Assertion methods for arrays oflongs.Assertion methods forLongs.Assertions forLongPredicate.MapAssert<KEY,VALUE> Assertions forMaps.MapSizeAssert<KEY,VALUE> Assertions forMatcher.Assertion class checking aThrowableAssert.ThrowingCallablethrows no exception.Assertion methods applicable tos.NumberObject2DArrayAssert<ELEMENT>Assertion methods for two-dimensional arrays of objects.ObjectArrayAssert<ELEMENT>Assertion methods for arrays of objects.ObjectAssert<ACTUAL>Assertion methods forObjects.Deprecated.UseAssertions.assertThat(Object)instead.Assertions methods applicable to groups of objects (e.g.OptionalAssert<VALUE>Assertions forOptional.Assertions forOptionalDouble.Assertions forOptionalInt.Assertions forOptionalLong.Assertion class forPathsAssertion methods forPeriodAssertions forPredicate.An assertion that supports asserting aPredicateover all the fields of an object graph.RecursiveComparisonAssert<SELF extends RecursiveComparisonAssert<SELF>>Assertion methods for arrays ofshorts.Assertion methods for arrays ofshorts.Assertion methods forShorts.An AssertionError that contains the error messages of the one or more AssertionErrors that caused this exception to be thrown.Suppose we have a test case and in it we'd like to make numerous assertions.Parent interface for soft assertion implementations.SoftThrowableAssertAlternative<ACTUAL extends Throwable>ThrowableAssertAlternativesubclass used in soft assertions.SoftThrowableTypeAssert<T extends Throwable>ThrowableTypeAssert for soft assertions.SpliteratorAssert<ELEMENT>Assertion methods forSpliterators.Assertion methods forStrings.ThrowableAssert<ACTUAL extends Throwable>Assertion methods forThrowables.ThrowableAssertAlternative<ACTUAL 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.Consumerthat deals with checked exceptions by rethrowing them asRuntimeException.Comparableassertions.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.A unified entry point to all assumptions from both the new Java 8 core API and the pre-Java 8 core API.Writable information about an assertion.Assertions forYearMonthtype from new Date & Time API introduced in Java 8.Assertions forZonedDateTimetype from new Date & Time API introduced in Java 8.
FactoryBasedNavigableIterableAssertinstead.