S
- 仕様型への自己参照 B
- ボディ型 public static interface WebTestClient.BodySpec<B,S extends WebTestClient.BodySpec<B,S>>
修飾子と型 | メソッドと説明 |
---|---|
<T extends S> | consumeWith(ConsumerSE<EntityExchangeResult<B>> consumer) 指定された Consumer SE で交換結果をアサートします。 |
<T extends S> | isEqualTo(B expected) 抽出されたボディが指定された値と等しいことをアサートします。 |
EntityExchangeResult<B> | returnResult() チェーンされた API を終了し、デコードされたレスポンスコンテンツを含む ExchangeResult を返します。 |
<T extends S> | value(ConsumerSE<B> consumer) 抽出されたボディを Consumer SE でアサートします。 |
<T extends S,R> | value(FunctionSE<B,R> bodyMapper, Matcher<? super R> matcher) 抽出したボディを関数で変換します。 |
<T extends S> | value(Matcher<? super B> matcher) 抽出されたボディを Matcher でアサートします。 |
<T extends S,R> T value(FunctionSE<B,R> bodyMapper, Matcher<? super R> matcher)
Matcher
でアサートします。<T extends S> T value(ConsumerSE<B> consumer)
Consumer
SE でアサートします。<T extends S> T consumeWith(ConsumerSE<EntityExchangeResult<B>> consumer)
Consumer
SE で交換結果をアサートします。EntityExchangeResult<B> returnResult()
ExchangeResult
を返します。