SPR-8430 Rename WebMvcConfiguration to DelegatingWebMvcConfiguration, make it public and make delegation methods final

This commit is contained in:
Rossen Stoyanchev
2011-06-13 12:20:25 +00:00
parent 25e2537c17
commit 883ac319bc
4 changed files with 22 additions and 30 deletions

View File

@@ -63,14 +63,14 @@ import org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolv
*/
public class WebMvcConfigurationTests {
private WebMvcConfiguration mvcConfiguration;
private DelegatingWebMvcConfiguration mvcConfiguration;
private WebMvcConfigurer configurer;
@Before
public void setUp() {
configurer = EasyMock.createMock(WebMvcConfigurer.class);
mvcConfiguration = new WebMvcConfiguration();
mvcConfiguration = new DelegatingWebMvcConfiguration();
}
@Test
@@ -114,7 +114,7 @@ public class WebMvcConfigurationTests {
converters.add(new StringHttpMessageConverter());
}
});
mvcConfiguration = new WebMvcConfiguration();
mvcConfiguration = new DelegatingWebMvcConfiguration();
mvcConfiguration.setConfigurers(configurers);
adapter = mvcConfiguration.requestMappingHandlerAdapter();