From 4630e62c20876926601c17cebf7304a232a63af2 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 28 Jul 2017 12:25:05 +0200 Subject: [PATCH] Fix formatting --- .../spr/MockMvcBuilderMethodChainTests.java | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/spring-test/src/test/java/org/springframework/test/web/servlet/samples/spr/MockMvcBuilderMethodChainTests.java b/spring-test/src/test/java/org/springframework/test/web/servlet/samples/spr/MockMvcBuilderMethodChainTests.java index 93c28d55ce..d91abc0963 100644 --- a/spring-test/src/test/java/org/springframework/test/web/servlet/samples/spr/MockMvcBuilderMethodChainTests.java +++ b/spring-test/src/test/java/org/springframework/test/web/servlet/samples/spr/MockMvcBuilderMethodChainTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2017 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. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.test.web.servlet.samples.spr; import org.junit.Test; @@ -41,20 +42,21 @@ import static org.springframework.test.web.servlet.request.MockMvcRequestBuilder @ContextConfiguration public class MockMvcBuilderMethodChainTests { - @Autowired - private WebApplicationContext wac; + @Autowired + private WebApplicationContext wac; - @Test - public void chainMultiple() { - MockMvcBuilders - .webAppContextSetup(wac) - .addFilter(new CharacterEncodingFilter() ) - .defaultRequest(get("/").contextPath("/mywebapp")) - .build(); - } + @Test + public void chainMultiple() { + MockMvcBuilders + .webAppContextSetup(wac) + .addFilter(new CharacterEncodingFilter() ) + .defaultRequest(get("/").contextPath("/mywebapp")) + .build(); + } + + @Configuration + @EnableWebMvc + static class WebConfig implements WebMvcConfigurer { + } - @Configuration - @EnableWebMvc - static class WebConfig implements WebMvcConfigurer { - } }