Clean up Spring MVC Test Framework code
- Formatting - Suppress warnings - Remove unused imports
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.test.web.servlet;
|
||||
|
||||
import org.springframework.mock.web.MockHttpServletRequest;
|
||||
import org.springframework.test.web.servlet.request.RequestPostProcessor;
|
||||
|
||||
/**
|
||||
* Extended variant of a {@link RequestBuilder} that applies its
|
||||
|
||||
@@ -30,6 +30,7 @@ import org.springframework.web.context.WebApplicationContext;
|
||||
|
||||
import javax.servlet.Filter;
|
||||
import javax.servlet.ServletContext;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -121,6 +122,7 @@ public abstract class AbstractMockMvcBuilder<B extends AbstractMockMvcBuilder<B>
|
||||
* Build a {@link org.springframework.test.web.servlet.MockMvc} instance.
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("rawtypes")
|
||||
public final MockMvc build() {
|
||||
|
||||
WebApplicationContext wac = initWebAppContext();
|
||||
|
||||
@@ -16,11 +16,9 @@
|
||||
|
||||
package org.springframework.test.web.servlet.setup;
|
||||
|
||||
import org.springframework.test.web.servlet.RequestBuilder;
|
||||
import org.springframework.test.web.servlet.request.RequestPostProcessor;
|
||||
import org.springframework.web.context.WebApplicationContext;
|
||||
|
||||
|
||||
/**
|
||||
* An empty method implementation of {@link MockMvcConfigurer}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user