Fix formatting
This commit is contained in:
parent
859da2f074
commit
4630e62c20
|
@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.test.web.servlet.samples.spr;
|
package org.springframework.test.web.servlet.samples.spr;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -41,20 +42,21 @@ import static org.springframework.test.web.servlet.request.MockMvcRequestBuilder
|
||||||
@ContextConfiguration
|
@ContextConfiguration
|
||||||
public class MockMvcBuilderMethodChainTests {
|
public class MockMvcBuilderMethodChainTests {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private WebApplicationContext wac;
|
private WebApplicationContext wac;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void chainMultiple() {
|
public void chainMultiple() {
|
||||||
MockMvcBuilders
|
MockMvcBuilders
|
||||||
.webAppContextSetup(wac)
|
.webAppContextSetup(wac)
|
||||||
.addFilter(new CharacterEncodingFilter() )
|
.addFilter(new CharacterEncodingFilter() )
|
||||||
.defaultRequest(get("/").contextPath("/mywebapp"))
|
.defaultRequest(get("/").contextPath("/mywebapp"))
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
@EnableWebMvc
|
||||||
|
static class WebConfig implements WebMvcConfigurer {
|
||||||
|
}
|
||||||
|
|
||||||
@Configuration
|
|
||||||
@EnableWebMvc
|
|
||||||
static class WebConfig implements WebMvcConfigurer {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue