Uses of Class
org.assertj.core.api.AbstractAssert
-
Packages that use AbstractAssert Package Description org.assertj.core.api -
-
Uses of AbstractAssert in org.assertj.core.api
Classes in org.assertj.core.api with type parameters of type AbstractAssert Modifier and Type Class Description class
AbstractAssert<SELF extends AbstractAssert<SELF,ACTUAL>,ACTUAL>
Base class for all assertions.class
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 forCollection
s.class
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 isObjectEnumerableAssert
.Collection
class
AbstractIterableSizeAssert<SELF extends AbstractIterableAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
class
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 forList
s.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.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.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.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.class
InstanceOfAssertFactory<T,ASSERT extends AbstractAssert<?,?>>
AssertFactory
decorator which casts the input value to the given type before invoking the decoratedAssertFactory
.Subclasses of AbstractAssert in org.assertj.core.api Modifier and Type Class Description class
Abstract2DArrayAssert<SELF extends Abstract2DArrayAssert<SELF,ACTUAL,ELEMENT>,ACTUAL,ELEMENT>
Base class for all two-dimensional array assertions.class
AbstractArrayAssert<SELF extends AbstractArrayAssert<SELF,ACTUAL,ELEMENT>,ACTUAL,ELEMENT>
Base class for all array assertions.class
AbstractAtomicFieldUpdaterAssert<SELF extends AbstractAtomicFieldUpdaterAssert<SELF,VALUE,ATOMIC,OBJECT>,VALUE,ATOMIC,OBJECT>
Base class for all fieldupdater assertions.class
AbstractAtomicReferenceAssert<SELF extends AbstractAtomicReferenceAssert<SELF,VALUE,ATOMIC>,VALUE,ATOMIC>
Base class for atomic assertions.class
AbstractBigDecimalAssert<SELF extends AbstractBigDecimalAssert<SELF>>
Base class for all implementations of assertions forBigDecimal
s.class
AbstractBigIntegerAssert<SELF extends AbstractBigIntegerAssert<SELF>>
Base class for all implementations of assertions forBigInteger
s.class
AbstractBooleanArrayAssert<SELF extends AbstractBooleanArrayAssert<SELF>>
class
AbstractBooleanAssert<SELF extends AbstractBooleanAssert<SELF>>
Base class for all implementations of assertions forBoolean
s.class
AbstractByteArrayAssert<SELF extends AbstractByteArrayAssert<SELF>>
class
AbstractByteAssert<SELF extends AbstractByteAssert<SELF>>
Base class for all implementations of assertions forByte
s.class
AbstractCharacterAssert<SELF extends AbstractCharacterAssert<SELF>>
Base class for all implementations of assertions forCharacter
s.class
AbstractCharArrayAssert<SELF extends AbstractCharArrayAssert<SELF>>
class
AbstractCharSequenceAssert<SELF extends AbstractCharSequenceAssert<SELF,ACTUAL>,ACTUAL extends CharSequence>
Base class for all implementations of assertions forCharSequence
s.class
AbstractClassAssert<SELF extends AbstractClassAssert<SELF>>
Base class for all implementations of assertions forClass
es.class
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 forCollection
s.class
AbstractComparableAssert<SELF extends AbstractComparableAssert<SELF,ACTUAL>,ACTUAL extends Comparable<? super ACTUAL>>
Base class for all implementations of
.ComparableAssert
class
AbstractCompletableFutureAssert<SELF extends AbstractCompletableFutureAssert<SELF,RESULT>,RESULT>
Assertions forCompletableFuture
.class
AbstractDateAssert<SELF extends AbstractDateAssert<SELF>>
Base class for all implementations of assertions forDate
s.class
AbstractDoubleArrayAssert<SELF extends AbstractDoubleArrayAssert<SELF>>
class
AbstractDoubleAssert<SELF extends AbstractDoubleAssert<SELF>>
Base class for all implementations of assertions forDouble
s.class
AbstractDurationAssert<SELF extends AbstractDurationAssert<SELF>>
Assertions forDuration
type.class
AbstractEnumerableAssert<SELF extends AbstractEnumerableAssert<SELF,ACTUAL,ELEMENT>,ACTUAL,ELEMENT>
Base implementation for Enumerable class assertions.class
AbstractFileAssert<SELF extends AbstractFileAssert<SELF>>
Base class for all implementations of assertions forFile
s.class
AbstractFloatArrayAssert<SELF extends AbstractFloatArrayAssert<SELF>>
class
AbstractFloatAssert<SELF extends AbstractFloatAssert<SELF>>
Base class for all implementations of assertions forFloat
s.class
AbstractFutureAssert<SELF extends AbstractFutureAssert<SELF,ACTUAL,RESULT>,ACTUAL extends Future<RESULT>,RESULT>
class
AbstractInputStreamAssert<SELF extends AbstractInputStreamAssert<SELF,ACTUAL>,ACTUAL extends InputStream>
Base class for all implementations of assertions forInputStream
s.class
AbstractInstantAssert<SELF extends AbstractInstantAssert<SELF>>
Assertions forInstant
type from new Date & Time API introduced in Java 8.class
AbstractIntArrayAssert<SELF extends AbstractIntArrayAssert<SELF>>
class
AbstractIntegerAssert<SELF extends AbstractIntegerAssert<SELF>>
Base class for all implementations of assertions forInteger
s.class
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 isObjectEnumerableAssert
.Collection
class
AbstractIterableSizeAssert<SELF extends AbstractIterableAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
class
AbstractIteratorAssert<SELF extends AbstractIteratorAssert<SELF,ELEMENT>,ELEMENT>
Base class for all implementations of assertions forIterator
s.class
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 forList
s.class
AbstractLocalDateAssert<SELF extends AbstractLocalDateAssert<SELF>>
Assertions forLocalDate
type from new Date & Time API introduced in Java 8.class
AbstractLocalDateTimeAssert<SELF extends AbstractLocalDateTimeAssert<SELF>>
Assertions forLocalDateTime
type from new Date & Time API introduced in Java 8.class
AbstractLocalTimeAssert<SELF extends AbstractLocalTimeAssert<SELF>>
Assertions forLocalTime
type from new Date & Time API introduced in Java 8.class
AbstractLongAdderAssert<SELF extends AbstractLongAdderAssert<SELF>>
Base class for all implementations of assertions forLongAdder
s.class
AbstractLongArrayAssert<SELF extends AbstractLongArrayAssert<SELF>>
class
AbstractLongAssert<SELF extends AbstractLongAssert<SELF>>
Base class for all implementations of assertions forLong
s.class
AbstractMapAssert<SELF extends AbstractMapAssert<SELF,ACTUAL,K,V>,ACTUAL extends Map<K,V>,K,V>
Base class for all implementations of assertions forMap
s.class
AbstractMapSizeAssert<SELF extends AbstractMapAssert<SELF,A,KEY,VALUE>,A extends Map<KEY,VALUE>,KEY,VALUE>
class
AbstractObjectArrayAssert<SELF extends AbstractObjectArrayAssert<SELF,ELEMENT>,ELEMENT>
Assertion methods for arrays of objects.class
AbstractObjectAssert<SELF extends AbstractObjectAssert<SELF,ACTUAL>,ACTUAL>
Base class for all implementations of assertions forObject
s.class
AbstractOffsetDateTimeAssert<SELF extends AbstractOffsetDateTimeAssert<SELF>>
Assertions forOffsetDateTime
type from new Date & Time API introduced in Java 8.class
AbstractOffsetTimeAssert<SELF extends AbstractOffsetTimeAssert<SELF>>
Assertions forOffsetTime
type from new Date & Time API introduced in Java 8.class
AbstractOptionalAssert<SELF extends AbstractOptionalAssert<SELF,VALUE>,VALUE>
Assertions forOptional
.class
AbstractOptionalDoubleAssert<SELF extends AbstractOptionalDoubleAssert<SELF>>
Assertions forOptionalDouble
.class
AbstractOptionalIntAssert<SELF extends AbstractOptionalIntAssert<SELF>>
Assertions forOptionalInt
.class
AbstractOptionalLongAssert<SELF extends AbstractOptionalLongAssert<SELF>>
Assertions forOptionalLong
.class
AbstractPathAssert<SELF extends AbstractPathAssert<SELF>>
Assertions forPath
objectsclass
AbstractPeriodAssert<SELF extends AbstractPeriodAssert<SELF>>
Assertions forPeriod
type.class
AbstractPredicateAssert<SELF extends AbstractPredicateAssert<SELF,T>,T>
Assertions forPredicate
.(package private) class
AbstractPredicateLikeAssert<SELF extends AbstractPredicateLikeAssert<SELF,PRIMITIVE_PREDICATE,PRIMITIVE>,PRIMITIVE_PREDICATE,PRIMITIVE>
Assertions forPredicate
.class
AbstractShortArrayAssert<SELF extends AbstractShortArrayAssert<SELF>>
class
AbstractShortAssert<SELF extends AbstractShortAssert<SELF>>
Base class for all implementations of assertions forShort
s.class
AbstractSpliteratorAssert<SELF extends AbstractSpliteratorAssert<SELF,ELEMENT>,ELEMENT>
Assertions forSpliterator
type.class
AbstractStringAssert<SELF extends AbstractStringAssert<SELF>>
class
AbstractTemporalAssert<SELF extends AbstractTemporalAssert<SELF,TEMPORAL>,TEMPORAL extends Temporal>
Base class for all implementations of assertions forTemporal
s.class
AbstractThrowableAssert<SELF extends AbstractThrowableAssert<SELF,ACTUAL>,ACTUAL extends Throwable>
Base class for all implementations of assertions forThrowable
s.class
AbstractUriAssert<SELF extends AbstractUriAssert<SELF>>
Base class for all implementations of assertions forURI
s.class
AbstractUrlAssert<SELF extends AbstractUrlAssert<SELF>>
Base class for all implementations of assertions forURL
s.class
AbstractZonedDateTimeAssert<SELF extends AbstractZonedDateTimeAssert<SELF>>
class
AtomicBooleanAssert
class
AtomicIntegerArrayAssert
class
AtomicIntegerAssert
class
AtomicIntegerFieldUpdaterAssert<OBJECT>
Assertion methods forAtomicIntegerFieldUpdater
s.class
AtomicLongArrayAssert
class
AtomicLongAssert
class
AtomicLongFieldUpdaterAssert<OBJECT>
Assertion methods forAtomicLongFieldUpdater
s.class
AtomicMarkableReferenceAssert<VALUE>
Assertion methods forAtomicMarkableReference
s.class
AtomicReferenceArrayAssert<T>
class
AtomicReferenceAssert<V>
class
AtomicReferenceFieldUpdaterAssert<FIELD,OBJECT>
Assertion methods forAtomicReferenceFieldUpdater
s.class
AtomicStampedReferenceAssert<VALUE>
Assertion methods forAtomicStampedReference
s.class
BigDecimalAssert
Assertion methods forBigDecimal
s.class
BigIntegerAssert
Assertion methods forBigInteger
s.class
Boolean2DArrayAssert
Assertion methods for two-dimensional arrays ofboolean
s.class
BooleanArrayAssert
Assertion methods for arrays ofboolean
s.class
BooleanAssert
Assertion methods forBoolean
s.class
Byte2DArrayAssert
Assertion methods for two-dimensional arrays ofbyte
s.class
ByteArrayAssert
Assertion methods for arrays ofbyte
s.class
ByteAssert
Assertion methods forByte
s.class
Char2DArrayAssert
Assertion methods for two-dimensional arrays ofchar
s.class
CharacterAssert
Assertion methods forCharacter
s.class
CharArrayAssert
Assertion methods for arrays ofchar
s.class
CharSequenceAssert
Assertion methods forCharSequence
s.class
ClassAssert
Assertion methods forClass
es.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.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.class
CollectionAssert<ELEMENT>
Assertion methods forCollection
s.class
CompletableFutureAssert<RESULT>
Assertions forCompletableFuture
.class
DateAssert
Assertions forDate
s.class
Double2DArrayAssert
Assertion methods for two-dimensional arrays ofdouble
s.class
DoubleArrayAssert
Assertion methods for arrays ofdouble
s.class
DoubleAssert
Assertion methods forDouble
s.class
DoublePredicateAssert
Assertions forPredicate
.class
DurationAssert
Assertion methods forDuration
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.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.class
FileAssert
Assertion methods forFile
s.class
Float2DArrayAssert
Reusable assertions for two-dimensional arrays offloat
s.class
FloatArrayAssert
Assertion methods for arrays offloat
s.class
FloatAssert
Assertion methods for floats.class
FutureAssert<RESULT>
Assertion methods forFuture
.class
GenericComparableAssert<ACTUAL extends Comparable<? super ACTUAL>>
Concrete generic
to be used throughComparableAssert
Assertions.assertThat(java.lang.Comparable)
.class
InputStreamAssert
Assertion methods forInputStream
s.class
InstantAssert
Assertion methods forInstant
s.class
Int2DArrayAssert
Assertion methods for two-dimensional arrays ofint
s.class
IntArrayAssert
Assertion methods for arrays ofint
s.class
IntegerAssert
Assertion methods forInteger
s.class
IntPredicateAssert
Assertions forPredicate
.class
IterableAssert<ELEMENT>
Assertion methods forIterable
.class
IterableSizeAssert<T>
class
IteratorAssert<ELEMENT>
Assertion methods forIterator
.class
ListAssert<ELEMENT>
Assertion methods forList
s.class
LocalDateAssert
class
LocalDateTimeAssert
class
LocalTimeAssert
class
Long2DArrayAssert
Assertion methods for two-dimensional arrays oflong
s.class
LongAdderAssert
Assertions forLongAdder
.class
LongArrayAssert
Assertion methods for arrays oflong
s.class
LongAssert
Assertion methods forLong
s.class
LongPredicateAssert
Assertions forLongPredicate
.class
MapAssert<KEY,VALUE>
Assertions forMap
s.class
MapSizeAssert<KEY,VALUE>
class
Object2DArrayAssert<ELEMENT>
Assertion methods for two-dimensional arrays of objects.class
ObjectArrayAssert<ELEMENT>
Assertion methods for arrays of objects.class
ObjectAssert<ACTUAL>
Assertion methods forObject
s.class
OffsetDateTimeAssert
class
OffsetTimeAssert
class
OptionalAssert<VALUE>
Assertions forOptional
.class
OptionalDoubleAssert
Assertions forOptionalDouble
.class
OptionalIntAssert
Assertions forOptionalInt
.class
OptionalLongAssert
Assertions forOptionalLong
.class
PathAssert
Assertion class forPath
sclass
PeriodAssert
Assertion methods forPeriod
class
PredicateAssert<T>
Assertions forPredicate
.class
RecursiveComparisonAssert<SELF extends RecursiveComparisonAssert<SELF>>
class
Short2DArrayAssert
Assertion methods for arrays ofshort
s.class
ShortArrayAssert
Assertion methods for arrays ofshort
s.class
ShortAssert
Assertion methods forShort
s.class
SpliteratorAssert<ELEMENT>
Assertion methods forSpliterator
s.class
StringAssert
Assertion methods forString
s.class
ThrowableAssert<ACTUAL extends Throwable>
Assertion methods forThrowable
s.class
ThrowableAssertAlternative<ACTUAL extends Throwable>
Assertion methods forThrowable
similar toThrowableAssert
but with assertions methods named differently to make testing code fluent (ex :withMessage
instead ofhasMessage
.class
UriAssert
Assertion class forURI
sclass
UrlAssert
Assertion class forURL
sclass
ZonedDateTimeAssert
Assertions forZonedDateTime
type from new Date & Time API introduced in Java 8.Fields in org.assertj.core.api declared as AbstractAssert Modifier and Type Field Description protected SELF
AbstractAssert. myself
Methods in org.assertj.core.api with type parameters of type AbstractAssert Modifier and Type Method Description static <T,ASSERT extends AbstractAssert<?,?>>
InstanceOfAssertFactory<T,ASSERT>Assertions. as(InstanceOfAssertFactory<T,ASSERT> assertFactory)
A syntax sugar to write fluent assertion with methods having anInstanceOfAssertFactory
parameter.static <T,ASSERT extends AbstractAssert<?,?>>
InstanceOfAssertFactory<T,ASSERT>BDDAssertions. as(InstanceOfAssertFactory<T,ASSERT> assertFactory)
A syntax sugar to write fluent assertion with methods having anInstanceOfAssertFactory
parameter.default <T,ASSERT extends AbstractAssert<?,?>>
InstanceOfAssertFactory<T,ASSERT>WithAssertions. as(InstanceOfAssertFactory<T,ASSERT> assertFactory)
A syntax sugar to write fluent assertion with methods having anInstanceOfAssertFactory
parameter.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractAssert. asInstanceOf(InstanceOfAssertFactory<?,ASSERT> instanceOfAssertFactory)
Uses anInstanceOfAssertFactory
to verify that the actual value is an instance of a given type and to produce a newAssert
narrowed to that type.<ASSERT extends AbstractAssert<?,?>>
ASSERTAssert. asInstanceOf(InstanceOfAssertFactory<?,ASSERT> instanceOfAssertFactory)
Uses anInstanceOfAssertFactory
to verify that the actual value is an instance of a given type and to produce a newAssert
narrowed to that type.static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Assertions. assertThat(ACTUAL actual, Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to anyClassBasedNavigableIterableAssert
Iterable
element in order to perform assertions on it.static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Assertions. assertThat(Iterable<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to anyFactoryBasedNavigableIterableAssert
Iterable
element in order to perform assertions on it.static <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Assertions. assertThat(List<? extends ELEMENT> actual, Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to anyClassBasedNavigableListAssert
List
element in order to perform assertions on it.static <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Assertions. assertThat(List<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to anyFactoryBasedNavigableListAssert
List
element in order to perform assertions on it.static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>AssertionsForInterfaceTypes. assertThat(ACTUAL actual, Class<ELEMENT_ASSERT> assertClass)
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>AssertionsForInterfaceTypes. assertThat(Iterable<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
.IterableAssert
static <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>AssertionsForInterfaceTypes. assertThat(List<? extends ELEMENT> actual, Class<ELEMENT_ASSERT> assertClass)
static <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>AssertionsForInterfaceTypes. assertThat(List<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Java6Assertions. assertThat(ACTUAL actual, Class<ELEMENT_ASSERT> assertClass)
Deprecated.Creates a new instance of
allowing to navigate to anyClassBasedNavigableIterableAssert
Iterable
element in order to perform assertions on it.static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Java6Assertions. assertThat(Iterable<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Deprecated.Creates a new instance of
allowing to navigate to anyFactoryBasedNavigableIterableAssert
Iterable
element in order to perform assertions on it.static <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Java6Assertions. assertThat(List<? extends ELEMENT> actual, Class<ELEMENT_ASSERT> assertClass)
Deprecated.Creates a new instance of
allowing to navigate to anyClassBasedNavigableListAssert
List
element in order to perform assertions on it.static <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Java6Assertions. assertThat(List<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Deprecated.Creates a new instance of
allowing to navigate to anyFactoryBasedNavigableListAssert
List
element in order to perform assertions on it.default <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>WithAssertions. assertThat(ACTUAL actual, Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to anyClassBasedNavigableIterableAssert
Iterable
element in order to perform assertions on it.default <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>WithAssertions. assertThat(Iterable<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to anyFactoryBasedNavigableIterableAssert
Iterable
element in order to perform assertions on it.default <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>WithAssertions. assertThat(List<? extends ELEMENT> actual, Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to anyClassBasedNavigableListAssert
List
element in order to perform assertions on it.default <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>WithAssertions. assertThat(List<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to anyFactoryBasedNavigableListAssert
List
element in order to perform assertions on it.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractIterableAssert. element(int index, InstanceOfAssertFactory<?,ASSERT> assertFactory)
Navigate and allow to perform assertions on the chosen element of theIterable
under test.protected <ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractAssert. extracting(String propertyOrField, AssertFactory<Object,ASSERT> assertFactory)
Extracts the value of given field/property from the object under test and creates a new assertion object using the given assert factory.protected <T,ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractAssert. extracting(Function<? super ACTUAL,? extends T> extractor, AssertFactory<T,ASSERT> assertFactory)
Uses the givenFunction
to extract a value from the object under test and creates a new assertion object using the given assert factory.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractObjectAssert. extracting(String propertyOrField, InstanceOfAssertFactory<?,ASSERT> assertFactory)
Extracts the value of given field/property from the object under test, the extracted value becoming the new object under test.<T,ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractObjectAssert. extracting(Function<? super ACTUAL,T> extractor, InstanceOfAssertFactory<?,ASSERT> assertFactory)
Uses the givenFunction
to extract a value from the object under test, the extracted value becoming the new object under test.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractMapAssert. extractingByKey(K key, InstanceOfAssertFactory<?,ASSERT> assertFactory)
Extract the value of given key from the map under test, the extracted value becoming the new object under test.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractIterableAssert. first(InstanceOfAssertFactory<?,ASSERT> assertFactory)
Navigate and allow to perform assertions on the first element of theIterable
under test.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractOptionalAssert. get(InstanceOfAssertFactory<?,ASSERT> assertFactory)
Verifies that the actualOptional
is notnull
and not empty and returns an new assertion instance to chain assertions on the optional value.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractIterableAssert. last(InstanceOfAssertFactory<?,ASSERT> assertFactory)
Navigate and allow to perform assertions on the last element of theIterable
under test.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractIterableAssert. singleElement(InstanceOfAssertFactory<?,ASSERT> assertFactory)
Verifies that theIterable
under test contains a single element and allows to perform assertions on that element.
The assertions are strongly typed according to the givenAssertFactory
parameter.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractCompletableFutureAssert. succeedsWithin(long timeout, TimeUnit unit, InstanceOfAssertFactory<RESULT,ASSERT> assertFactory)
Waits if necessary for at most the given time for this future to complete, theInstanceOfAssertFactory
parameter is used to return assertions specific to the the future's result type.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractCompletableFutureAssert. succeedsWithin(Duration timeout, InstanceOfAssertFactory<RESULT,ASSERT> assertFactory)
Waits if necessary for at most the given time for this future to complete, theInstanceOfAssertFactory
parameter is used to return assertions specific to the the future's result type.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractFutureAssert. succeedsWithin(long timeout, TimeUnit unit, InstanceOfAssertFactory<RESULT,ASSERT> assertFactory)
Waits if necessary for at most the given time for this future to complete, theInstanceOfAssertFactory
parameter is used to return assertions specific to the the future's result type.<ASSERT extends AbstractAssert<?,?>>
ASSERTAbstractFutureAssert. succeedsWithin(Duration timeout, InstanceOfAssertFactory<RESULT,ASSERT> assertFactory)
Waits if necessary for at most the given time for this future to complete, theInstanceOfAssertFactory
parameter is used to return assertions specific to the the future's result type.static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>BDDAssertions. then(ACTUAL actual, Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to anyClassBasedNavigableIterableAssert
Iterable
element in order to perform assertions on it.static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>BDDAssertions. then(Iterable<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to anyFactoryBasedNavigableIterableAssert
Iterable
element in order to perform assertions on it.static <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>BDDAssertions. then(List<? extends ELEMENT> actual, Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to anyClassBasedNavigableListAssert
List
element in order to perform assertions on it.static <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>BDDAssertions. then(List<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to anyFactoryBasedNavigableListAssert
List
element in order to perform assertions on it.static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Java6BDDAssertions. then(ACTUAL actual, Class<ELEMENT_ASSERT> assertClass)
Deprecated.Creates a new instance of
allowing to navigate to anyClassBasedNavigableIterableAssert
Iterable
element in order to perform assertions on it.static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableIterableAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Java6BDDAssertions. then(Iterable<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Deprecated.Creates a new instance of
allowing to navigate to anyFactoryBasedNavigableIterableAssert
Iterable
element in order to perform assertions on it.static <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
ClassBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Java6BDDAssertions. then(List<? extends ELEMENT> actual, Class<ELEMENT_ASSERT> assertClass)
Deprecated.Creates a new instance of
allowing to navigate to anyClassBasedNavigableListAssert
List
element in order to perform assertions on it.static <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
FactoryBasedNavigableListAssert<?,ACTUAL,ELEMENT,ELEMENT_ASSERT>Java6BDDAssertions. then(List<? extends ELEMENT> actual, AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Deprecated.Creates a new instance of
allowing to navigate to anyFactoryBasedNavigableListAssert
List
element in order to perform assertions on it.Methods in org.assertj.core.api that return AbstractAssert Modifier and Type Method Description private static AbstractAssert<?,?>
Assumptions. asAssumption(AbstractAssert<?,?> assertion)
private static AbstractAssert<?,?>
Assumptions. asIterableSizeAssumption(AbstractAssert<?,?> assertion)
private static AbstractAssert<?,?>
Assumptions. asMapSizeAssumption(AbstractAssert<?,?> assertion)
private static AbstractAssert<?,?>
Assumptions. asRecursiveComparisonAssumption(AbstractAssert<?,?> assertion)
private AbstractAssert<?,?>
ProxifyMethodChangingTheObjectUnderTest. createAssertProxy(AbstractAssert<?,?> currentAssert)
static AbstractAssert<?,?>
ProxifyMethodChangingTheObjectUnderTest. intercept(ProxifyMethodChangingTheObjectUnderTest dispatcher, Callable<AbstractAssert<?,?>> assertionMethod, AbstractAssert<?,?> currentAssertInstance)
Methods in org.assertj.core.api with parameters of type AbstractAssert Modifier and Type Method Description private static AbstractAssert<?,?>
Assumptions. asAssumption(AbstractAssert<?,?> assertion)
private static AbstractAssert<?,?>
Assumptions. asIterableSizeAssumption(AbstractAssert<?,?> assertion)
private static AbstractAssert<?,?>
Assumptions. asMapSizeAssumption(AbstractAssert<?,?> assertion)
private static AbstractAssert<?,?>
Assumptions. asRecursiveComparisonAssumption(AbstractAssert<?,?> assertion)
private AbstractAssert<?,?>
ProxifyMethodChangingTheObjectUnderTest. createAssertProxy(AbstractAssert<?,?> currentAssert)
static Object
Assumptions.AssumptionMethodInterceptor. intercept(AbstractAssert<?,?> assertion, Callable<Object> proxy)
static AbstractAssert<?,?>
ProxifyMethodChangingTheObjectUnderTest. intercept(ProxifyMethodChangingTheObjectUnderTest dispatcher, Callable<AbstractAssert<?,?>> assertionMethod, AbstractAssert<?,?> currentAssertInstance)
private void
AbstractAssert. propagateAssertionInfoFrom(AbstractAssert<?,?> assertInstance)
(package private) SELF
AbstractAssert. withAssertionState(AbstractAssert assertInstance)
(package private) SELF
AbstractIterableAssert. withAssertionState(AbstractAssert assertInstance)
(package private) SELF
AbstractObjectArrayAssert. withAssertionState(AbstractAssert assertInstance)
(package private) SELF
AbstractObjectAssert. withAssertionState(AbstractAssert assertInstance)
Method parameters in org.assertj.core.api with type arguments of type AbstractAssert Modifier and Type Method Description static AbstractAssert<?,?>
ProxifyMethodChangingTheObjectUnderTest. intercept(ProxifyMethodChangingTheObjectUnderTest dispatcher, Callable<AbstractAssert<?,?>> assertionMethod, AbstractAssert<?,?> currentAssertInstance)
-