| Package | Description |
|---|---|
| org.assertj.core.api |
| Modifier and Type | Class and Description |
|---|---|
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. |
| Modifier and Type | Class and Description |
|---|---|
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 |
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 |
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 |
ListAssert<ELEMENT>
Assertion methods for
Lists. |
| Modifier and Type | Field and Description |
|---|---|
static InstanceOfAssertFactory<Collection,AbstractCollectionAssert<?,Collection<?>,Object,ObjectAssert<Object>>> |
InstanceOfAssertFactories.COLLECTION
|
| Modifier and Type | Method and Description |
|---|---|
default <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
WithAssertions.assertThat(Collection<? extends E> actual)
Creates a new instance of
. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
AssertionsForInterfaceTypes.assertThat(Collection<? extends E> actual)
Creates a new instance of
. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
Assertions.assertThat(Collection<? extends E> actual)
Creates a new instance of
. |
static <T> AbstractCollectionAssert<?,Collection<? extends T>,T,ObjectAssert<T>> |
Java6Assertions.assertThat(Collection<? extends T> actual)
Deprecated.
Creates a new instance of
. |
default <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
WithAssertions.assertThatCollection(Collection<? extends E> actual)
Creates a new instance of
. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
CollectionAssert.assertThatCollection(Collection<? extends E> actual) |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
AssertionsForInterfaceTypes.assertThatCollection(Collection<? extends E> actual)
Creates a new instance of
. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
Assertions.assertThatCollection(Collection<? extends E> actual)
Creates a new instance of
. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
Assumptions.assumeThat(Collection<? extends E> actual)
Creates a new instance of
assumption. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
Assumptions.assumeThatCollection(Collection<? extends E> actual)
Creates a new instance of
assumption. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
BDDAssumptions.given(Collection<? extends E> actual)
Creates a new assumption's instance for a
Collection value. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
BDDAssumptions.givenCollection(Collection<? extends E> actual)
Creates a new assumption's instance of a
value. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
BDDAssertions.then(Collection<? extends E> actual)
Creates a new instance of
. |
static <T> AbstractCollectionAssert<?,Collection<? extends T>,T,ObjectAssert<T>> |
Java6BDDAssertions.then(Collection<? extends T> actual)
Deprecated.
Creates a new instance of
. |
default <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
Java6BDDSoftAssertionsProvider.thenCollection(Collection<? extends E> actual)
Creates a new instance of
. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
BDDAssertions.thenCollection(Collection<? extends E> actual)
Creates a new instance of
. |
| Modifier and Type | Method and Description |
|---|---|
static <E> InstanceOfAssertFactory<Collection,AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>>> |
InstanceOfAssertFactories.collection(Class<E> elementType)
|
Copyright © 2025. All rights reserved.