Fix formatting

This commit is contained in:
Sam Brannen 2017-07-28 12:25:05 +02:00
parent 859da2f074
commit 4630e62c20
1 changed files with 17 additions and 15 deletions

View File

@ -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 {
}
}