Interface RestTestClient.BodySpec<B, S extends RestTestClient.BodySpec<B,S>>
- Type Parameters:
B- the body typeS- a self reference to the spec type
- Enclosing interface:
RestTestClient
public static interface RestTestClient.BodySpec<B, S extends RestTestClient.BodySpec<B,S>>
Spec for expectations on the response body decoded to a single Object.
- Since:
- 7.0
- Author:
- Rob Worsnop, Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescription<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 anEntityExchangeResultwith 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, for example, extracting a property, and assert the mapped value with aMatcher.<T extends S>
TAssert the extracted body with aMatcher.
-
Method Details
-
isEqualTo
-
value
-
value
-
value
-
consumeWith
Assert the exchange result with the givenConsumer. -
returnResult
EntityExchangeResult<B> returnResult()Exit the chained API and return anEntityExchangeResultwith the decoded response content.
-