|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2019 the original author or authors. |
| 2 | + * Copyright 2002-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
21 | 21 | import org.springframework.web.server.adapter.WebHttpHandlerBuilder;
|
22 | 22 |
|
23 | 23 | /**
|
24 |
| - * Contract that frameworks or applications can use to pre-package a set of |
25 |
| - * customizations to a {@link WebTestClient.Builder} and expose that |
26 |
| - * as a shortcut. |
| 24 | + * Contract to encapsulate customizations to a {@link WebTestClient.Builder}. |
| 25 | + * Typically used by frameworks that wish to provide a shortcut for common |
| 26 | + * initialization. |
27 | 27 | *
|
28 | 28 | * @author Rossen Stoyanchev
|
29 | 29 | * @since 5.0
|
|
32 | 32 | public interface WebTestClientConfigurer {
|
33 | 33 |
|
34 | 34 | /**
|
35 |
| - * Invoked once only, immediately (i.e. before this method returns). |
36 |
| - * @param builder the WebTestClient builder to make changes to |
37 |
| - * @param httpHandlerBuilder the builder for the "mock server" HttpHandler |
38 |
| - * this client was configured for "mock server" testing |
39 |
| - * @param connector the connector for "live" integration tests if this |
40 |
| - * server was configured for live integration testing |
| 35 | + * Use methods on {@link WebTestClient.Builder} to modify test client |
| 36 | + * settings. For a mock WebFlux server, use {@link WebHttpHandlerBuilder} |
| 37 | + * to customize server configuration. For a MockMvc server, mutate the |
| 38 | + * {@link org.springframework.test.web.servlet.client.MockMvcHttpConnector} |
| 39 | + * and set it on {@link WebTestClient.Builder}. |
| 40 | + * @param builder the WebTestClient builder for test client changes |
| 41 | + * @param httpHandlerBuilder for mock WebFlux server settings |
| 42 | + * @param connector the connector in use |
41 | 43 | */
|
42 | 44 | void afterConfigurerAdded(WebTestClient.Builder builder,
|
43 | 45 | @Nullable WebHttpHandlerBuilder httpHandlerBuilder,
|
|
0 commit comments