接口 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.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 WebTestClient.ListBodySpec<E>
contains(E... elements)
Assert the extracted list of values contains the given elements.WebTestClient.ListBodySpec<E>
doesNotContain(E... elements)
Assert the extracted list of values doesn't contain the given elements.WebTestClient.ListBodySpec<E>
hasSize(int size)
Assert the extracted list of values is of the given size.从接口继承的方法 org.springframework.test.web.reactive.server.WebTestClient.BodySpec
consumeWith, isEqualTo, returnResult, value, value, value
方法详细资料
hasSize
WebTestClient.ListBodySpec<E> hasSize(int size)
Assert the extracted list of values is of the given size.- 参数:
size
- the expected size
contains
WebTestClient.ListBodySpec<E> contains(E... elements)
Assert the extracted list of values contains the given elements.- 参数:
elements
- the elements to check
doesNotContain
WebTestClient.ListBodySpec<E> doesNotContain(E... elements)
Assert the extracted list of values doesn't contain the given elements.- 参数:
elements
- the elements to check