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)
Consume and decode the response body to
List<E> and then apply
List-specific assertions. |
<E> WebTestClient.ListBodySpec<E> |
WebTestClient.ResponseSpec.expectBodyList(ParameterizedTypeReference<E> elementType)
Alternative to
WebTestClient.ResponseSpec.expectBodyList(Class) that accepts information
about a target type with generics. |
WebTestClient.ListBodySpec<E> |
WebTestClient.ListBodySpec.hasSize(int size)
Assert the extracted list of values is of the given size.
|