| Modifier and Type | Field and Description |
|---|---|
| private AssertFactory |
| Access | Constructor and Description |
|---|---|
| public | FactoryBasedNavigableIterableAssert(ACTUAL actual, Class<?> selfType, AssertFactory<ELEMENT, ELEMENT_ASSERT> assertFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| public static <ACTUAL extends Iterable | assertThat(Iterable<? extends ELEMENT> actual, AssertFactory<ELEMENT, ELEMENT_ASSERT> assertFactory)
Deprecated
This was added to help creating type-specific assertions for the elements of an
Iterable instance.
|
| 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.
|
| assertFactory | back to summary |
|---|---|
| private AssertFactory<ELEMENT, ELEMENT_ASSERT> assertFactory | |
| FactoryBasedNavigableIterableAssert | back to summary |
|---|---|
| public FactoryBasedNavigableIterableAssert(ACTUAL actual, Class<?> selfType, AssertFactory<ELEMENT, ELEMENT_ASSERT> assertFactory) | |
| 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.
| |
| 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 | |