public static interface WebTestClient.ListBodySpec<E> extends WebTestClient.BodySpec<java.util.List<E>,WebTestClient.ListBodySpec<E>>
| Modifier and Type | Method and Description |
|---|---|
WebTestClient.ListBodySpec<E> |
contains(E... elements)
Assert the extracted list of values contains the given elements.
|
WebTestClient.ListBodySpec<E> |
doesNotContain(E... elements)
Assert the extracted list of values doesn't contain the given elements.
|
WebTestClient.ListBodySpec<E> |
hasSize(int size)
Assert the extracted list of values is of the given size.
|
consumeWith, isEqualTo, returnResultWebTestClient.ListBodySpec<E> hasSize(int size)
size - the expected sizeWebTestClient.ListBodySpec<E> contains(E... elements)
elements - the elements to checkWebTestClient.ListBodySpec<E> doesNotContain(E... elements)
elements - the elements to check