use of org.springframework.web.servlet.view.script.ScriptTemplateViewResolver in project spring-framework by spring-projects.
the class ViewResolverRegistryTests method scriptTemplate.
@Test
public void scriptTemplate() {
this.registry.scriptTemplate().prefix("/").suffix(".html").cache(true);
ScriptTemplateViewResolver resolver = checkAndGetResolver(ScriptTemplateViewResolver.class);
checkPropertyValues(resolver, "prefix", "/", "suffix", ".html", "cacheLimit", 1024);
}
use of org.springframework.web.servlet.view.script.ScriptTemplateViewResolver in project spring-framework by spring-projects.
the class ViewResolverRegistryTests method scriptTemplateDefaultValues.
@Test
public void scriptTemplateDefaultValues() {
this.registry.scriptTemplate();
ScriptTemplateViewResolver resolver = checkAndGetResolver(ScriptTemplateViewResolver.class);
checkPropertyValues(resolver, "prefix", "", "suffix", "");
}
Aggregations