| Package | Description |
|---|---|
| org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient. |
| Modifier and Type | Method and Description |
|---|---|
WebTestClient.ListBodySpec<E> |
WebTestClient.ListBodySpec.contains(E... elements)
Assert the extracted list of values contains the given elements.
|
WebTestClient.ListBodySpec<E> |
WebTestClient.ListBodySpec.doesNotContain(E... elements)
Assert the extracted list of values doesn't contain the given elements.
|
<E> WebTestClient.ListBodySpec<E> |
WebTestClient.ResponseSpec.expectBodyList(Class<E> elementType)
Declare expectations on the response body decoded to
List<E>. |
<E> WebTestClient.ListBodySpec<E> |
WebTestClient.ResponseSpec.expectBodyList(org.springframework.core.ParameterizedTypeReference<E> elementType)
Variant of
WebTestClient.ResponseSpec.expectBodyList(Class) for element types with generics. |
WebTestClient.ListBodySpec<E> |
WebTestClient.ListBodySpec.hasSize(int size)
Assert the extracted list of values is of the given size.
|