Skip to content

Commit

Permalink
Undo MockServerRequest deprecation
Browse files Browse the repository at this point in the history
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
  • Loading branch information
poutsma committed Jun 8, 2020
1 parent 0998bd4 commit 0ccf5e1
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 0ccf5e1

Please sign in to comment.