接口的使用
cn.taketoday.test.web.reactive.server.WebTestClient.ListBodySpec
-
cn.taketoday.test.web.reactive.server中WebTestClient.ListBodySpec的使用
修饰符和类型方法说明Assert the extracted list of values contains the given elements.DefaultWebTestClient.DefaultListBodySpec.doesNotContain(E... elements) WebTestClient.ListBodySpec.doesNotContain(E... elements) Assert the extracted list of values doesn't contain the given elements.<E> WebTestClient.ListBodySpec<E>DefaultWebTestClient.DefaultResponseSpec.expectBodyList(cn.taketoday.core.ParameterizedTypeReference<E> elementType) <E> WebTestClient.ListBodySpec<E>DefaultWebTestClient.DefaultResponseSpec.expectBodyList(Class<E> elementType) <E> WebTestClient.ListBodySpec<E>WebTestClient.ResponseSpec.expectBodyList(cn.taketoday.core.ParameterizedTypeReference<E> elementType) Alternative toWebTestClient.ResponseSpec.expectBodyList(Class)that accepts information about a target type with generics.<E> WebTestClient.ListBodySpec<E>WebTestClient.ResponseSpec.expectBodyList(Class<E> elementType) Consume and decode the response body toList<E>and then apply List-specific assertions.private <E> WebTestClient.ListBodySpec<E>DefaultWebTestClient.DefaultResponseSpec.getListBodySpec(reactor.core.publisher.Flux<E> flux) DefaultWebTestClient.DefaultListBodySpec.hasSize(int size) WebTestClient.ListBodySpec.hasSize(int size) Assert the extracted list of values is of the given size.