Search in sources :

Example 1 with ScriptTemplateViewResolver

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);
}
Also used : ScriptTemplateViewResolver(org.springframework.web.servlet.view.script.ScriptTemplateViewResolver) Test(org.junit.jupiter.api.Test)

Example 2 with ScriptTemplateViewResolver

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", "");
}
Also used : ScriptTemplateViewResolver(org.springframework.web.servlet.view.script.ScriptTemplateViewResolver) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)2 ScriptTemplateViewResolver (org.springframework.web.servlet.view.script.ScriptTemplateViewResolver)2