Skip to content

Commit 6c4aff4

Browse files
committed
Polish
1 parent 9092102 commit 6c4aff4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/ViewResolutionIntegrationTests.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,9 @@ public void groovyMarkupInvalidConfig() throws Exception {
105105
// SPR-12013
106106

107107
@Test
108-
public void viewResolverBeanWithDefaultViewResolutionConfig() throws Exception {
109-
MockHttpServletResponse response = runTest(FreeMarkerBeanBasedWebConfig.class);
110-
assertEquals("<html><body>Hello World!</body></html>",
111-
response.getContentAsString());
108+
public void existingViewResolver() throws Exception {
109+
MockHttpServletResponse response = runTest(ExistingViewResolverConfig.class);
110+
assertEquals("<html><body>Hello World!</body></html>", response.getContentAsString());
112111
}
113112

114113

@@ -249,8 +248,11 @@ public void configureViewResolvers(ViewResolverRegistry registry) {
249248
}
250249
}
251250

251+
/**
252+
* Test @EnableWebMvc in the presence of pre-existing ViewResolver.
253+
*/
252254
@Configuration
253-
static class FreeMarkerBeanBasedWebConfig extends AbstractWebConfig {
255+
static class ExistingViewResolverConfig extends AbstractWebConfig {
254256

255257
@Bean
256258
public FreeMarkerViewResolver freeMarkerViewResolver() {

0 commit comments

Comments
 (0)