Java 类org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:DeviceDelegatingViewResolverAutoConfigurationTests.java   
@Test
public void deviceDelegatingMustacheViewResolver() throws Exception {
    load(Collections.<Class<?>>singletonList(MustacheAutoConfiguration.class),
            "spring.mobile.devicedelegatingviewresolver.enabled:true");
    assertThat(this.context.getBeansOfType(LiteDeviceDelegatingViewResolver.class))
            .hasSize(2);
    assertLiteDeviceDelegatingViewResolver(
            this.context.getBean(MustacheViewResolver.class),
            "deviceDelegatingMustacheViewResolver");
}
项目: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 mustacheAutoConfigurationWasImported() {
    assertThat(this.applicationContext)
            .has(importedAutoConfiguration(MustacheAutoConfiguration.class));
}
项目:spring-boot-concourse    文件:WebMvcTestAutoConfigurationIntegrationTests.java   
@Test
public void mustacheAutoConfigurationWasImported() {
    assertThat(this.applicationContext)
            .has(importedAutoConfiguration(MustacheAutoConfiguration.class));
}