Skip to content

Commit 0ccf5e1

Browse files
committed
Undo MockServerRequest deprecation
Setting path variables (and making sure they are available in a HandlerFunction) is more convenient with MockServerRequest than having to set attributes in MockServerWebExchange. This commit removes MockServerRequest's deprecation. Closes gh-25087
1 parent 0998bd4 commit 0ccf5e1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import org.springframework.http.server.RequestPath;
4646
import org.springframework.http.server.reactive.ServerHttpRequest;
4747
import org.springframework.lang.Nullable;
48-
import org.springframework.mock.web.server.MockServerWebExchange;
4948
import org.springframework.util.Assert;
5049
import org.springframework.util.CollectionUtils;
5150
import org.springframework.util.LinkedMultiValueMap;
@@ -63,11 +62,7 @@
6362
*
6463
* @author Arjen Poutsma
6564
* @since 5.0
66-
* @deprecated as of 5.2.5 in favor of
67-
* {@link ServerRequest#create(ServerWebExchange, List)} combined with
68-
* {@link MockServerWebExchange}.
6965
*/
70-
@Deprecated
7166
public final class MockServerRequest implements ServerRequest {
7267

7368
private final HttpMethod method;

0 commit comments

Comments
 (0)