接口 WebTestClientConfigurer
public interface WebTestClientConfigurer
Contract to encapsulate customizations to a
WebTestClient.Builder.
Typically used by frameworks that wish to provide a shortcut for common
initialization.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Harry Yang
- 另请参阅:
-
方法概要
修饰符和类型方法说明voidafterConfigurerAdded(WebTestClient.Builder builder, cn.taketoday.http.client.reactive.ClientHttpConnector connector) Use methods onWebTestClient.Builderto modify test client settings.
-
方法详细资料
-
afterConfigurerAdded
void afterConfigurerAdded(WebTestClient.Builder builder, @Nullable cn.taketoday.http.client.reactive.ClientHttpConnector connector) Use methods onWebTestClient.Builderto modify test client settings. For a mock WebFlux server, For a MockMvc server, mutate theMockMvcHttpConnectorand set it onWebTestClient.Builder.- 参数:
builder- the WebTestClient builder for test client changesconnector- the connector in use
-