Package | Description |
---|---|
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
Modifier and Type | Method and Description |
---|---|
WebTestClient.BodyContentSpec |
WebTestClient.BodyContentSpec.consumeWith(Consumer<EntityExchangeResult<byte[]>> consumer)
Assert the response body content with the given
Consumer . |
WebTestClient.BodyContentSpec |
JsonPathAssertions.doesNotExist()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.doesNotHaveJsonPath()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.exists()
|
WebTestClient.BodyContentSpec |
WebTestClient.ResponseSpec.expectBody()
Consume and decode the response body to
byte[] and then apply
assertions on the raw content (e.g. |
WebTestClient.BodyContentSpec |
JsonPathAssertions.hasJsonPath()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isArray()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isBoolean()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isEmpty()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isEqualTo(Object expectedValue)
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isMap()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isNotEmpty()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isNumber()
|
WebTestClient.BodyContentSpec |
WebTestClient.BodyContentSpec.json(String expectedJson)
Parse the expected and actual response content as JSON and perform a
"lenient" comparison verifying the same attribute-value pairs.
|