接口 WebTestClient.ListBodySpec<E>
- 类型参数:
E- the body list element type
- 所有超级接口:
WebTestClient.BodySpec<List<E>,WebTestClient.ListBodySpec<E>>
- 封闭接口:
- WebTestClient
public static interface WebTestClient.ListBodySpec<E>
extends WebTestClient.BodySpec<List<E>,WebTestClient.ListBodySpec<E>>
Spec for expectations on the response body decoded to a List.
-
方法概要
修饰符和类型方法说明Assert the extracted list of values contains the given elements.doesNotContain(E... elements) Assert the extracted list of values doesn't contain the given elements.hasSize(int size) Assert the extracted list of values is of the given size.从接口继承的方法 cn.taketoday.test.web.reactive.server.WebTestClient.BodySpec
consumeWith, isEqualTo, returnResult, value, value, value
-
方法详细资料
-
hasSize
Assert the extracted list of values is of the given size.- 参数:
size- the expected size
-
contains
Assert the extracted list of values contains the given elements.- 参数:
elements- the elements to check
-
doesNotContain
Assert the extracted list of values doesn't contain the given elements.- 参数:
elements- the elements to check
-