private class DefaultWebTestClient.DefaultSingleValueBodySpec extends java.lang.Object implements WebTestClient.SingleValueBodySpec
Modifier and Type | Field and Description |
---|---|
private EntityExchangeResult<?> |
result |
Constructor and Description |
---|
DefaultSingleValueBodySpec(EntityExchangeResult<?> result) |
Modifier and Type | Method and Description |
---|---|
<T> EntityExchangeResult<T> |
isEqualTo(T expected)
Assert the extracted body is equal to the given value.
|
<T> EntityExchangeResult<T> |
returnResult()
Return request and response details for the exchange including the
extracted response body.
|
private final EntityExchangeResult<?> result
public DefaultSingleValueBodySpec(EntityExchangeResult<?> result)
public <T> EntityExchangeResult<T> isEqualTo(T expected)
WebTestClient.SingleValueBodySpec
isEqualTo
in interface WebTestClient.SingleValueBodySpec
public <T> EntityExchangeResult<T> returnResult()
WebTestClient.SingleValueBodySpec
returnResult
in interface WebTestClient.SingleValueBodySpec