E
- the body list element typepublic 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, returnResult, value, value, value
WebTestClient.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