Skip to content

Commit 2e2a62a

Browse files
committed
Polishing
1 parent af7fe01 commit 2e2a62a

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClientConfigurer.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,9 +21,9 @@
2121
import org.springframework.web.server.adapter.WebHttpHandlerBuilder;
2222

2323
/**
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.
2727
*
2828
* @author Rossen Stoyanchev
2929
* @since 5.0
@@ -32,12 +32,14 @@
3232
public interface WebTestClientConfigurer {
3333

3434
/**
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
4143
*/
4244
void afterConfigurerAdded(WebTestClient.Builder builder,
4345
@Nullable WebHttpHandlerBuilder httpHandlerBuilder,

0 commit comments

Comments
 (0)