Collections.
To create an instance of this class, invoke .
Assertions#assertThat(Collection)
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <E> AbstractCollectionAssert | |
| protected CollectionAssert | newAbstractIterableAssert(Iterable<? extends ELEMENT>
the iterable used to build the concrete instance of AbstractIterableAssert iterable)Implements abstract org. |
| protected ObjectAssert | 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.
|
| CollectionAssert | back to summary |
|---|---|
| public CollectionAssert(Collection<? extends ELEMENT> actual) | |
| assertThatCollection | back to summary |
|---|---|
| public static <E> AbstractCollectionAssert | |
| newAbstractIterableAssert | back to summary |
|---|---|
| protected CollectionAssert 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 |
|---|---|
| protected ObjectAssert Implements abstract org. Doc from org. This method is used in navigating assertions like
Typical implementation is returning an
| |