support for Tiles 2.2.1 (preserving compatibility with Tiles 2.1.2 and above; SPR-6097)
This commit is contained in:
@@ -42,7 +42,7 @@ public class TilesConfigurerTests {
|
||||
public void simpleBootstrap() {
|
||||
MockServletContext sc = new MockServletContext();
|
||||
TilesConfigurer tc = new TilesConfigurer();
|
||||
tc.setDefinitions(new String[] {"/org/springframework/web/servlet/view/tiles2/tiles-definitions.xml"});
|
||||
tc.setDefinitions(new String[] {"/org/springframework/web/servlet/**/tiles-definitions.xml"});
|
||||
Properties props = new Properties();
|
||||
props.setProperty(TilesContainerFactory.ATTRIBUTE_EVALUATOR_INIT_PARAM, DirectAttributeEvaluator.class.getName());
|
||||
tc.setTilesProperties(props);
|
||||
@@ -54,6 +54,8 @@ public class TilesConfigurerTests {
|
||||
TilesRequestContext requestContext = new ServletTilesRequestContext(appContext,
|
||||
new MockHttpServletRequest(), new MockHttpServletResponse());
|
||||
assertNotNull(container.getDefinitionsFactory().getDefinition("test", requestContext));
|
||||
|
||||
tc.destroy();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user