diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java b/spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java index 5b3255e1c02..a8adb2f6145 100644 --- a/spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java +++ b/spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,14 +62,15 @@ import org.springframework.web.util.UriUtils; import org.springframework.web.util.UrlPathHelper; /** - * Default builder for {@link MockHttpServletRequest} required as input to perform - * requests in {@link MockMvc}. + * Default builder for {@link MockHttpServletRequest} required as input to + * perform requests in {@link MockMvc}. * - *
Application tests will typically access this builder through the static factory - * methods in {@link MockMvcRequestBuilders}. + *
Application tests will typically access this builder through the static + * factory methods in {@link MockMvcRequestBuilders}. * - *
Although this class cannot be extended, additional ways to initialize the - * {@code MockHttpServletRequest} can be plugged in via {@link #with(RequestPostProcessor)}. + *
This class is not open for extension. To apply custom initialization to
+ * the created {@code MockHttpServletRequest}, please use the
+ * {@link #with(RequestPostProcessor)} extension point.
*
* @author Rossen Stoyanchev
* @author Juergen Hoeller
@@ -81,7 +82,8 @@ import org.springframework.web.util.UrlPathHelper;
public class MockHttpServletRequestBuilder
implements ConfigurableSmartRequestBuilder