| Modifier and Type | Field and Description |
|---|---|
| private Class |
| Access | Constructor and Description |
|---|---|
| public | ClassBasedNavigableIterableAssert(ACTUAL actual, Class<?> selfType, Class<ELEMENT_ASSERT> assertClass)
|
| Modifier and Type | Method and Description |
|---|---|
| public static <ACTUAL extends Iterable | assertThat(ACTUAL actual, Class<ELEMENT_ASSERT> assertClass)
Deprecated
This was added to help creating type-specific assertions for the elements of an
Iterable instance.
|
| private <V> ELEMENT_ASSERT | |
| protected SELF | newAbstractIterableAssert(Iterable<? extends ELEMENT>
the iterable used to build the concrete instance of AbstractIterableAssert iterable)Implements abstract org. |
| public ELEMENT_ASSERT | toAssert(ELEMENT
the element value value, String describes the element, ex: "check first element" for description)first(), used in assertion description.Implements abstract org. first(), last() and element(int) to build the
assertion for the given element navigated to.
|
| assertClass | back to summary |
|---|---|
| private Class<ELEMENT_ASSERT> assertClass | |
| ClassBasedNavigableIterableAssert | back to summary |
|---|---|
| public ClassBasedNavigableIterableAssert(ACTUAL actual, Class<?> selfType, Class<ELEMENT_ASSERT> assertClass) | |
| assertThat | back to summary |
|---|---|
| public static <ACTUAL extends Iterable Deprecated This was added to help creating type-specific assertions for the elements of an Deprecated way:
However, there is a better way with InstanceOfAssertFactory and the corresponding
first(InstanceOfAssertFactory).
New way:
The main advantage of the latter is easier discoverability and the use of InstanceOfAssertFactory which is the
preferred way to create type-specific assertions in AssertJ API.
| |
| buildAssert | back to summary |
|---|---|
| private <V> ELEMENT_ASSERT buildAssert(V value, String description, Class<?> clazz) | |
| newAbstractIterableAssert | back to summary |
|---|---|
| protected SELF newAbstractIterableAssert(Iterable<? extends ELEMENT> iterable) Implements abstract org. Doc from org. This methods is needed to build a new concrete instance of AbstractIterableAssert after a filtering operation is executed. If you create your own subclass of AbstractIterableAssert, simply returns an instance of it in this method.
| |
| toAssert | back to summary |
|---|---|
| public ELEMENT_ASSERT toAssert(ELEMENT value, String description) Implements abstract org. Doc from org. This method is used in navigating assertions like
Typical implementation is returning an | |