Java 类org.springframework.boot.autoconfigure.groovy.template.GroovyTemplateAutoConfiguration 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:DeviceDelegatingViewResolverAutoConfigurationTests.java   
@Test
public void deviceDelegatingGroovyMarkupViewResolver() throws Exception {
    load(Collections.<Class<?>>singletonList(GroovyTemplateAutoConfiguration.class),
            "spring.mobile.devicedelegatingviewresolver.enabled:true");
    assertThat(this.context.getBeansOfType(LiteDeviceDelegatingViewResolver.class))
            .hasSize(2);
    assertLiteDeviceDelegatingViewResolver(
            this.context.getBean(GroovyMarkupViewResolver.class),
            "deviceDelegatingGroovyMarkupViewResolver");
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:DeviceDelegatingViewResolverAutoConfigurationTests.java   
@Test
public void deviceDelegatingViewResolverDisabled() throws Exception {
    load(Arrays.asList(FreeMarkerAutoConfiguration.class,
            GroovyTemplateAutoConfiguration.class, MustacheAutoConfiguration.class,
            ThymeleafAutoConfiguration.class),
            "spring.mobile.devicedelegatingviewresolver.enabled:false");
    assertThat(this.context.getBeansOfType(LiteDeviceDelegatingViewResolver.class))
            .hasSize(0);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:WebMvcTestAutoConfigurationIntegrationTests.java   
@Test
public void groovyTemplatesAutoConfigurationWasImported() {
    assertThat(this.applicationContext)
            .has(importedAutoConfiguration(GroovyTemplateAutoConfiguration.class));
}
项目:spring-boot-concourse    文件:WebMvcTestAutoConfigurationIntegrationTests.java   
@Test
public void groovyTemplatesAutoConfigurationWasImported() {
    assertThat(this.applicationContext)
            .has(importedAutoConfiguration(GroovyTemplateAutoConfiguration.class));
}