接口 WebTestClient.BodySpec<B,S extends WebTestClient.BodySpec<B,S>>
- 类型参数:
S- a self reference to the spec typeB- the body type
- 所有已知子接口:
WebTestClient.ListBodySpec<E>
- 封闭接口:
- WebTestClient
public static interface WebTestClient.BodySpec<B,S extends WebTestClient.BodySpec<B,S>>
Spec for expectations on the response body decoded to a single Object.
-
方法概要
修饰符和类型方法说明<T extends S>
TconsumeWith(Consumer<EntityExchangeResult<B>> consumer) Assert the exchange result with the givenConsumer.<T extends S>
TAssert the extracted body is equal to the given value.Exit the chained API and return anExchangeResultwith the decoded response content.<T extends S>
TAssert the extracted body with aConsumer.<T extends S,R>
TTransform the extracted the body with a function, e.g. extracting a property, and assert the mapped value with aMatcher.<T extends S>
TAssert the extracted body with aMatcher.
-
方法详细资料
-
isEqualTo
Assert the extracted body is equal to the given value. -
value
Assert the extracted body with aMatcher. -
value
Transform the extracted the body with a function, e.g. extracting a property, and assert the mapped value with aMatcher. -
value
Assert the extracted body with aConsumer. -
consumeWith
Assert the exchange result with the givenConsumer. -
returnResult
EntityExchangeResult<B> returnResult()Exit the chained API and return anExchangeResultwith the decoded response content.
-