Search in sources :

Example 6 with SpringResourceTemplateResolver

use of org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver in project spring-boot by spring-projects.

the class LocalDevToolsAutoConfigurationTests method defaultPropertyCanBeOverriddenFromCommandLine.

@Test
public void defaultPropertyCanBeOverriddenFromCommandLine() throws Exception {
    this.context = initializeAndRun(Config.class, "--spring.thymeleaf.cache=true");
    SpringResourceTemplateResolver resolver = this.context.getBean(SpringResourceTemplateResolver.class);
    assertThat(resolver.isCacheable()).isTrue();
}
Also used : SpringResourceTemplateResolver(org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)5 SpringResourceTemplateResolver (org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver)5 ThymeleafViewResolver (org.thymeleaf.spring5.view.ThymeleafViewResolver)2 File (java.io.File)1 SpringResourceTemplateResolver (org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver)1 ITemplateResolver (org.thymeleaf.templateresolver.ITemplateResolver)1