| Package | Description |
|---|---|
| org.assertj.core.api |
| Modifier and Type | Class and 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 for
Collections. |
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 is
. |
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 for
Lists. |
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 decorated AssertFactory. |
| Modifier and Type | Class and 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 for
BigDecimals. |
class |
AbstractBigDecimalScaleAssert<SELF extends AbstractBigDecimalAssert<SELF>>
Base class for BigDecimal scale assertions.
|
class |
AbstractBigIntegerAssert<SELF extends AbstractBigIntegerAssert<SELF>>
Base class for all implementations of assertions for
BigIntegers. |
class |
AbstractBooleanArrayAssert<SELF extends AbstractBooleanArrayAssert<SELF>> |
class |
AbstractBooleanAssert<SELF extends AbstractBooleanAssert<SELF>>
Base class for all implementations of assertions for
Booleans. |
class |
AbstractByteArrayAssert<SELF extends AbstractByteArrayAssert<SELF>> |
class |
AbstractByteAssert<SELF extends AbstractByteAssert<SELF>>
Base class for all implementations of assertions for
Bytes. |
class |
AbstractCharacterAssert<SELF extends AbstractCharacterAssert<SELF>>
Base class for all implementations of assertions for
Characters. |
class |
AbstractCharArrayAssert<SELF extends AbstractCharArrayAssert<SELF>> |
class |
AbstractCharSequenceAssert<SELF extends AbstractCharSequenceAssert<SELF,ACTUAL>,ACTUAL extends CharSequence>
Base class for all implementations of assertions for
CharSequences. |
class |
AbstractClassAssert<SELF extends AbstractClassAssert<SELF>>
Base class for all implementations of assertions for
Classes. |
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 for
Collections. |
class |
AbstractComparableAssert<SELF extends AbstractComparableAssert<SELF,ACTUAL>,ACTUAL extends Comparable<? super ACTUAL>>
Base class for all implementations of
. |
class |
AbstractCompletableFutureAssert<SELF extends AbstractCompletableFutureAssert<SELF,RESULT>,RESULT>
Assertions for
CompletableFuture. |
class |
AbstractDateAssert<SELF extends AbstractDateAssert<SELF>>
Base class for all implementations of assertions for
Dates. |
class |
AbstractDoubleArrayAssert<SELF extends AbstractDoubleArrayAssert<SELF>> |
class |
AbstractDoubleAssert<SELF extends AbstractDoubleAssert<SELF>>
Base class for all implementations of assertions for
Doubles. |
class |
AbstractDurationAssert<SELF extends AbstractDurationAssert<SELF>>
Assertions for
Duration 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 for
Files. |
class |
AbstractFileSizeAssert<SELF extends AbstractFileAssert<SELF>>
Base class for file size assertions.
|
class |
AbstractFloatArrayAssert<SELF extends AbstractFloatArrayAssert<SELF>> |
class |
AbstractFloatAssert<SELF extends AbstractFloatAssert<SELF>>
Base class for all implementations of assertions for
Floats. |
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 for
InputStreams. |
class |
AbstractInstantAssert<SELF extends AbstractInstantAssert<SELF>>
Assertions for
Instant 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 for
Integers. |
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 is
. |
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 for
Iterators. |
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 for
Lists. |
class |
AbstractLocalDateAssert<SELF extends AbstractLocalDateAssert<SELF>>
Assertions for
LocalDate type from new Date & Time API introduced in Java 8. |
class |
AbstractLocalDateTimeAssert<SELF extends AbstractLocalDateTimeAssert<SELF>>
Assertions for
LocalDateTime type from new Date & Time API introduced in Java 8. |
class |
AbstractLocalTimeAssert<SELF extends AbstractLocalTimeAssert<SELF>>
Assertions for
LocalTime type from new Date & Time API introduced in Java 8. |
class |
AbstractLongAdderAssert<SELF extends AbstractLongAdderAssert<SELF>>
Base class for all implementations of assertions for
LongAdders. |
class |
AbstractLongArrayAssert<SELF extends AbstractLongArrayAssert<SELF>> |
class |
AbstractLongAssert<SELF extends AbstractLongAssert<SELF>>
Base class for all implementations of assertions for
Longs. |
class |
AbstractMapAssert<SELF extends AbstractMapAssert<SELF,ACTUAL,K,V>,ACTUAL extends Map<K,V>,K,V>
Base class for all implementations of assertions for
Maps. |
class |
AbstractMapSizeAssert<SELF extends AbstractMapAssert<SELF,A,KEY,VALUE>,A extends Map<KEY,VALUE>,KEY,VALUE> |
class |
AbstractMatcherAssert<SELF extends AbstractMatcherAssert<SELF>>
Assertions for
Matcher |
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 for
Objects. |
class |
AbstractOffsetDateTimeAssert<SELF extends AbstractOffsetDateTimeAssert<SELF>>
Assertions for
OffsetDateTime type from new Date & Time API introduced in Java 8. |
class |
AbstractOffsetTimeAssert<SELF extends AbstractOffsetTimeAssert<SELF>>
Assertions for
OffsetTime type from new Date & Time API introduced in Java 8. |
class |
AbstractOptionalAssert<SELF extends AbstractOptionalAssert<SELF,VALUE>,VALUE>
Assertions for
Optional. |
class |
AbstractOptionalDoubleAssert<SELF extends AbstractOptionalDoubleAssert<SELF>>
Assertions for
OptionalDouble. |
class |
AbstractOptionalIntAssert<SELF extends AbstractOptionalIntAssert<SELF>>
Assertions for
OptionalInt. |
class |
AbstractOptionalLongAssert<SELF extends AbstractOptionalLongAssert<SELF>>
Assertions for
OptionalLong. |
class |
AbstractPathAssert<SELF extends AbstractPathAssert<SELF>>
Assertions for
Path objects |
class |
AbstractPeriodAssert<SELF extends AbstractPeriodAssert<SELF>>
Assertions for
Period type. |
class |
AbstractPredicateAssert<SELF extends AbstractPredicateAssert<SELF,T>,T>
Assertions for
Predicate. |
class |
AbstractShortArrayAssert<SELF extends AbstractShortArrayAssert<SELF>> |
class |
AbstractShortAssert<SELF extends AbstractShortAssert<SELF>>
Base class for all implementations of assertions for
Shorts. |
class |
AbstractSpliteratorAssert<SELF extends AbstractSpliteratorAssert<SELF,ELEMENT>,ELEMENT>
Assertions for
Spliterator type. |
class |
AbstractStringAssert<SELF extends AbstractStringAssert<SELF>> |
class |
AbstractTemporalAssert<SELF extends AbstractTemporalAssert<SELF,TEMPORAL>,TEMPORAL extends Temporal>
Base class for all implementations of assertions for
Temporals. |
class |
AbstractThrowableAssert<SELF extends AbstractThrowableAssert<SELF,ACTUAL>,ACTUAL extends Throwable>
Base class for all implementations of assertions for
Throwables. |
class |
AbstractUniversalComparableAssert<SELF extends AbstractUniversalComparableAssert<SELF,T>,T>
Base class for
Comparable assertions. |
class |
AbstractUriAssert<SELF extends AbstractUriAssert<SELF>>
Base class for all implementations of assertions for
URIs. |
class |
AbstractUrlAssert<SELF extends AbstractUrlAssert<SELF>>
Base class for all implementations of assertions for
URLs. |
class |
AbstractZonedDateTimeAssert<SELF extends AbstractZonedDateTimeAssert<SELF>> |
class |
AtomicBooleanAssert |
class |
AtomicIntegerArrayAssert |
class |
AtomicIntegerAssert |
class |
AtomicIntegerFieldUpdaterAssert<OBJECT>
Assertion methods for
AtomicIntegerFieldUpdaters. |
class |
AtomicLongArrayAssert |
class |
AtomicLongAssert |
class |
AtomicLongFieldUpdaterAssert<OBJECT>
Assertion methods for
AtomicLongFieldUpdaters. |
class |
AtomicMarkableReferenceAssert<VALUE>
Assertion methods for
AtomicMarkableReferences. |
class |
AtomicReferenceArrayAssert<T> |
class |
AtomicReferenceAssert<V> |
class |
AtomicReferenceFieldUpdaterAssert<FIELD,OBJECT>
Assertion methods for
AtomicReferenceFieldUpdaters. |
class |
AtomicStampedReferenceAssert<VALUE>
Assertion methods for
AtomicStampedReferences. |
class |
BigDecimalAssert
Assertion methods for
BigDecimals. |
class |
BigDecimalScaleAssert<T> |
class |
BigIntegerAssert
Assertion methods for
BigIntegers. |
class |
Boolean2DArrayAssert
Assertion methods for two-dimensional arrays of
booleans. |
class |
BooleanArrayAssert
Assertion methods for arrays of
booleans. |
class |
BooleanAssert
Assertion methods for
Booleans. |
class |
Byte2DArrayAssert
Assertion methods for two-dimensional arrays of
bytes. |
class |
ByteArrayAssert
Assertion methods for arrays of
bytes. |
class |
ByteAssert
Assertion methods for
Bytes. |
class |
Char2DArrayAssert
Assertion methods for two-dimensional arrays of
chars. |
class |
CharacterAssert
Assertion methods for
Characters. |
class |
CharArrayAssert
Assertion methods for arrays of
chars. |
class |
CharSequenceAssert
Assertion methods for
CharSequences. |
class |
ClassAssert
Assertion methods for
Classes. |
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 for
Collections. |
class |
CompletableFutureAssert<RESULT>
Assertions for
CompletableFuture. |
class |
DateAssert
Assertions for
Dates. |
class |
Double2DArrayAssert
Assertion methods for two-dimensional arrays of
doubles. |
class |
DoubleArrayAssert
Assertion methods for arrays of
doubles. |
class |
DoubleAssert
Assertion methods for
Doubles. |
class |
DoublePredicateAssert
Assertions for
Predicate. |
class |
DurationAssert
Assertion methods for
Duration |
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 for
Files. |
class |
FileSizeAssert<T> |
class |
Float2DArrayAssert
Reusable assertions for two-dimensional arrays of
floats. |
class |
FloatArrayAssert
Assertion methods for arrays of
floats. |
class |
FloatAssert
Assertion methods for floats.
|
class |
FutureAssert<RESULT>
Assertion methods for
Future. |
class |
GenericComparableAssert<ACTUAL extends Comparable<? super ACTUAL>>
Concrete generic
to be used through Assertions.assertThat(java.lang.Comparable). |
class |
InputStreamAssert
Assertion methods for
InputStreams. |
class |
InstantAssert
Assertion methods for
Instants. |
class |
Int2DArrayAssert
Assertion methods for two-dimensional arrays of
ints. |
class |
IntArrayAssert
Assertion methods for arrays of
ints. |
class |
IntegerAssert
Assertion methods for
Integers. |
class |
IntPredicateAssert
Assertions for
Predicate. |
class |
IterableAssert<ELEMENT>
Assertion methods for
Iterable. |
class |
IterableSizeAssert<T> |
class |
IteratorAssert<ELEMENT>
Assertion methods for
Iterator. |
class |
ListAssert<ELEMENT>
Assertion methods for
Lists. |
class |
LocalDateAssert |
class |
LocalDateTimeAssert |
class |
LocalTimeAssert |
class |
Long2DArrayAssert
Assertion methods for two-dimensional arrays of
longs. |
class |
LongAdderAssert
Assertions for
LongAdder. |
class |
LongArrayAssert
Assertion methods for arrays of
longs. |
class |
LongAssert
Assertion methods for
Longs. |
class |
LongPredicateAssert
Assertions for
LongPredicate. |
class |
MapAssert<KEY,VALUE>
Assertions for
Maps. |
class |
MapSizeAssert<KEY,VALUE> |
class |
MatcherAssert
Assertions for
Matcher. |
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 for
Objects. |
class |
OffsetDateTimeAssert |
class |
OffsetTimeAssert |
class |
OptionalAssert<VALUE>
Assertions for
Optional. |
class |
OptionalDoubleAssert
Assertions for
OptionalDouble. |
class |
OptionalIntAssert
Assertions for
OptionalInt. |
class |
OptionalLongAssert
Assertions for
OptionalLong. |
class |
PathAssert
Assertion class for
Paths |
class |
PeriodAssert
Assertion methods for
Period |
class |
PredicateAssert<T>
Assertions for
Predicate. |
class |
RecursiveComparisonAssert<SELF extends RecursiveComparisonAssert<SELF>> |
class |
Short2DArrayAssert
Assertion methods for arrays of
shorts. |
class |
ShortArrayAssert
Assertion methods for arrays of
shorts. |
class |
ShortAssert
Assertion methods for
Shorts. |
class |
SoftThrowableAssertAlternative<ACTUAL extends Throwable>
ThrowableAssertAlternative subclass used in soft assertions. |
class |
SpliteratorAssert<ELEMENT>
Assertion methods for
Spliterators. |
class |
StringAssert
Assertion methods for
Strings. |
class |
ThrowableAssert<ACTUAL extends Throwable>
Assertion methods for
Throwables. |
class |
ThrowableAssertAlternative<ACTUAL 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. |
class |
UniversalComparableAssert<T>
Comparable assertions. |
class |
UriAssert
Assertion class for
URIs |
class |
UrlAssert
Assertion class for
URLs |
class |
ZonedDateTimeAssert
Assertions for
ZonedDateTime type from new Date & Time API introduced in Java 8. |
| Modifier and Type | Field and Description |
|---|---|
protected SELF |
AbstractAssert.myself |
| Modifier and Type | Method and Description |
|---|---|
default <T,ASSERT extends AbstractAssert<?,?>> |
WithAssertions.as(InstanceOfAssertFactory<T,ASSERT> assertFactory)
A syntax sugar to write fluent assertion with methods having an
InstanceOfAssertFactory parameter. |
static <T,ASSERT extends AbstractAssert<?,?>> |
BDDAssertions.as(InstanceOfAssertFactory<T,ASSERT> assertFactory)
A syntax sugar to write fluent assertion with methods having an
InstanceOfAssertFactory parameter. |
static <T,ASSERT extends AbstractAssert<?,?>> |
Assertions.as(InstanceOfAssertFactory<T,ASSERT> assertFactory)
A syntax sugar to write fluent assertion with methods having an
InstanceOfAssertFactory parameter. |
<ASSERT extends AbstractAssert<?,?>> |
Assert.asInstanceOf(InstanceOfAssertFactory<?,ASSERT> instanceOfAssertFactory)
Uses an
InstanceOfAssertFactory to verify that the actual value is an instance of a given type and to produce
a new Assert narrowed to that type. |
<ASSERT extends AbstractAssert<?,?>> |
AbstractAssert.asInstanceOf(InstanceOfAssertFactory<?,ASSERT> instanceOfAssertFactory)
Uses an
InstanceOfAssertFactory to verify that the actual value is an instance of a given type and to produce
a new Assert narrowed to that type. |
default <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
WithAssertions.assertThat(ACTUAL actual,
Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to any Iterable element
in order to perform assertions on it. |
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Java6Assertions.assertThat(ACTUAL actual,
Class<ELEMENT_ASSERT> assertClass)
Deprecated.
Creates a new instance of
allowing to navigate to any Iterable element
in order to perform assertions on it. |
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
ClassBasedNavigableIterableAssert.assertThat(ACTUAL actual,
Class<ELEMENT_ASSERT> assertClass) |
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
AssertionsForInterfaceTypes.assertThat(ACTUAL actual,
Class<ELEMENT_ASSERT> assertClass) |
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Assertions.assertThat(ACTUAL actual,
Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to any Iterable element
in order to perform assertions on it. |
default <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
WithAssertions.assertThat(Iterable<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to any Iterable element
in order to perform assertions on it. |
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Java6Assertions.assertThat(Iterable<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Deprecated.
Creates a new instance of
allowing to navigate to any Iterable element
in order to perform assertions on it. |
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
FactoryBasedNavigableIterableAssert.assertThat(Iterable<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory) |
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
AssertionsForInterfaceTypes.assertThat(Iterable<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
. |
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Assertions.assertThat(Iterable<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to any Iterable element
in order to perform assertions on it. |
default <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
WithAssertions.assertThat(List<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to any List element
in order to perform assertions on it. |
static <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Java6Assertions.assertThat(List<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Deprecated.
Creates a new instance of
allowing to navigate to any List element
in order to perform assertions on it. |
static <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
FactoryBasedNavigableListAssert.assertThat(List<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory) |
static <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
AssertionsForInterfaceTypes.assertThat(List<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory) |
static <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Assertions.assertThat(List<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to any List element
in order to perform assertions on it. |
default <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
WithAssertions.assertThat(List<? extends ELEMENT> actual,
Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to any List element
in order to perform assertions on it. |
static <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Java6Assertions.assertThat(List<? extends ELEMENT> actual,
Class<ELEMENT_ASSERT> assertClass)
Deprecated.
Creates a new instance of
allowing to navigate to any List element
in order to perform assertions on it. |
static <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
ClassBasedNavigableListAssert.assertThat(List<? extends ELEMENT> actual,
Class<ELEMENT_ASSERT> assertClass) |
static <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
AssertionsForInterfaceTypes.assertThat(List<? extends ELEMENT> actual,
Class<ELEMENT_ASSERT> assertClass) |
static <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Assertions.assertThat(List<? extends ELEMENT> actual,
Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to any List element
in order to perform assertions on it. |
<ASSERT extends AbstractAssert<?,?>> |
AbstractIterableAssert.element(int index,
InstanceOfAssertFactory<?,ASSERT> assertFactory)
Navigate and allow to perform assertions on the chosen element of the
Iterable under test. |
protected <T,ASSERT extends AbstractAssert<?,?>> |
AbstractAssert.extracting(Function<? super ACTUAL,? extends T> extractor,
AssertFactory<T,ASSERT> assertFactory)
Uses the given
Function to extract a value from the object under test and creates a new assertion object
using the given assert factory. |
<T,ASSERT extends AbstractAssert<?,?>> |
AbstractObjectAssert.extracting(Function<? super ACTUAL,T> extractor,
InstanceOfAssertFactory<?,ASSERT> assertFactory)
Uses the given
Function to extract a value from the object under test, the extracted value becoming the new object under test. |
protected <ASSERT extends AbstractAssert<?,?>> |
AbstractAssert.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.
|
<ASSERT extends AbstractAssert<?,?>> |
AbstractObjectAssert.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.
|
<ASSERT extends AbstractAssert<?,?>> |
AbstractMapAssert.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<?,?>> |
AbstractIterableAssert.first(InstanceOfAssertFactory<?,ASSERT> assertFactory)
Navigate and allow to perform assertions on the first element of the
Iterable under test. |
<ASSERT extends AbstractAssert<?,?>> |
AbstractOptionalAssert.get(InstanceOfAssertFactory<?,ASSERT> assertFactory)
Verifies that the actual
Optional is not null and not empty and returns an new assertion instance
to chain assertions on the optional value. |
<ASSERT extends AbstractAssert<?,?>> |
AbstractIterableAssert.last(InstanceOfAssertFactory<?,ASSERT> assertFactory)
Navigate and allow to perform assertions on the last element of the
Iterable under test. |
<ASSERT extends AbstractAssert<?,?>> |
AbstractObjectArrayAssert.singleElement(InstanceOfAssertFactory<?,ASSERT> assertFactory)
Verifies that the array under test contains a single element and allows to perform assertions on that element,
the assertions are strongly typed according to the given
AssertFactory parameter. |
<ASSERT extends AbstractAssert<?,?>> |
AbstractIterableAssert.singleElement(InstanceOfAssertFactory<?,ASSERT> assertFactory)
Verifies that the
Iterable under test contains a single element and allows to perform assertions on that element,
the assertions are strongly typed according to the given AssertFactory parameter. |
<ASSERT extends AbstractAssert<?,?>> |
AbstractFutureAssert.succeedsWithin(Duration timeout,
InstanceOfAssertFactory<RESULT,ASSERT> assertFactory)
Waits if necessary for at most the given time for this future to complete, the
InstanceOfAssertFactory
parameter is used to return assertions specific to the the future's result type. |
<ASSERT extends AbstractAssert<?,?>> |
AbstractCompletableFutureAssert.succeedsWithin(Duration timeout,
InstanceOfAssertFactory<RESULT,ASSERT> assertFactory)
Waits if necessary for at most the given time for this future to complete, the
InstanceOfAssertFactory
parameter is used to return assertions specific to the the future's result type. |
<ASSERT extends AbstractAssert<?,?>> |
AbstractFutureAssert.succeedsWithin(long timeout,
TimeUnit unit,
InstanceOfAssertFactory<RESULT,ASSERT> assertFactory)
Waits if necessary for at most the given time for this future to complete, the
InstanceOfAssertFactory
parameter is used to return assertions specific to the the future's result type. |
<ASSERT extends AbstractAssert<?,?>> |
AbstractCompletableFutureAssert.succeedsWithin(long timeout,
TimeUnit unit,
InstanceOfAssertFactory<RESULT,ASSERT> assertFactory)
Waits if necessary for at most the given time for this future to complete, the
InstanceOfAssertFactory
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>> |
Java6BDDAssertions.then(ACTUAL actual,
Class<ELEMENT_ASSERT> assertClass)
Deprecated.
Creates a new instance of
allowing to navigate to any Iterable element
in order to perform assertions on it. |
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
BDDAssertions.then(ACTUAL actual,
Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to any Iterable element
in order to perform assertions on it. |
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Java6BDDAssertions.then(Iterable<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Deprecated.
Creates a new instance of
allowing to navigate to any Iterable element
in order to perform assertions on it. |
static <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
BDDAssertions.then(Iterable<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to any Iterable element
in order to perform assertions on it. |
static <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Java6BDDAssertions.then(List<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Deprecated.
Creates a new instance of
allowing to navigate to any List element
in order to perform assertions on it. |
static <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
BDDAssertions.then(List<? extends ELEMENT> actual,
AssertFactory<ELEMENT,ELEMENT_ASSERT> assertFactory)
Creates a new instance of
allowing to navigate to any List element
in order to perform assertions on it. |
static <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
Java6BDDAssertions.then(List<? extends ELEMENT> actual,
Class<ELEMENT_ASSERT> assertClass)
Deprecated.
Creates a new instance of
allowing to navigate to any List element
in order to perform assertions on it. |
static <ELEMENT,ACTUAL extends List<? extends ELEMENT>,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>> |
BDDAssertions.then(List<? extends ELEMENT> actual,
Class<ELEMENT_ASSERT> assertClass)
Creates a new instance of
allowing to navigate to any List element
in order to perform assertions on it. |
| Modifier and Type | Method and Description |
|---|---|
static AbstractAssert<?,?> |
ProxifyMethodChangingTheObjectUnderTest.intercept(ProxifyMethodChangingTheObjectUnderTest dispatcher,
Callable<AbstractAssert<?,?>> assertionMethod,
AbstractAssert<?,?> currentAssertInstance) |
| Modifier and Type | Method and Description |
|---|---|
static AbstractAssert<?,?> |
ProxifyMethodChangingTheObjectUnderTest.intercept(ProxifyMethodChangingTheObjectUnderTest dispatcher,
Callable<AbstractAssert<?,?>> assertionMethod,
AbstractAssert<?,?> currentAssertInstance) |
| Modifier and Type | Method and Description |
|---|---|
static AbstractAssert<?,?> |
ProxifyMethodChangingTheObjectUnderTest.intercept(ProxifyMethodChangingTheObjectUnderTest dispatcher,
Callable<AbstractAssert<?,?>> assertionMethod,
AbstractAssert<?,?> currentAssertInstance) |
Copyright © 2025. All rights reserved.