From 3346e2a6418f4a46c50bc96f0a78f648c2d78c45 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Mon, 8 Jun 2020 15:40:09 +0200 Subject: [PATCH] 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 --- .../mock/web/reactive/function/server/MockServerRequest.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java b/spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java index 47cb0e40113f..606cecada7be 100644 --- a/spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java +++ b/spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java @@ -45,7 +45,6 @@ import org.springframework.http.server.RequestPath; import org.springframework.http.server.reactive.ServerHttpRequest; import org.springframework.lang.Nullable; -import org.springframework.mock.web.server.MockServerWebExchange; import org.springframework.util.Assert; import org.springframework.util.CollectionUtils; import org.springframework.util.LinkedMultiValueMap; @@ -63,11 +62,7 @@ * * @author Arjen Poutsma * @since 5.0 - * @deprecated as of 5.2.5 in favor of - * {@link ServerRequest#create(ServerWebExchange, List)} combined with - * {@link MockServerWebExchange}. */ -@Deprecated public final class MockServerRequest implements ServerRequest { private final HttpMethod method;