public static interface WebTestClient.ResponseSpec
Modifier and Type | Method and Description |
---|---|
WebTestClient.ResponseSpec |
consumeWith(java.util.function.Consumer<ExchangeResult> consumer)
Consume request and response details of the exchange.
|
WebTestClient.BodySpec |
expectBody()
Other assertions on the response body -- isEmpty, map, etc.
|
WebTestClient.TypeBodySpec |
expectBody(java.lang.Class<?> elementType)
Assertions on the body of the response extracted to one or more
representations of the given type.
|
WebTestClient.TypeBodySpec |
expectBody(ResolvableType elementType)
Variant of
expectBody(Class) for use with generic types. |
HeaderAssertions |
expectHeader()
Assertions on the headers of the response.
|
StatusAssertions |
expectStatus()
Assertions on the response status.
|
ExchangeResult |
returnResult()
Return the request and response details of the exchange.
|
StatusAssertions expectStatus()
HeaderAssertions expectHeader()
WebTestClient.TypeBodySpec expectBody(java.lang.Class<?> elementType)
WebTestClient.TypeBodySpec expectBody(ResolvableType elementType)
expectBody(Class)
for use with generic types.WebTestClient.BodySpec expectBody()
WebTestClient.ResponseSpec consumeWith(java.util.function.Consumer<ExchangeResult> consumer)
expectBody
methods is used.ExchangeResult returnResult()
expectBody
methods is used.