Java 类org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:WebMvcAutoConfigurationTests.java   
@Test
public void overrideMessageCodesFormat() throws Exception {
    load(AllResources.class,
            "spring.mvc.messageCodesResolverFormat:POSTFIX_ERROR_CODE");
    assertThat(this.context.getBean(WebMvcAutoConfigurationAdapter.class)
            .getMessageCodesResolver()).isNotNull();
}
项目:spring-boot-concourse    文件:WebMvcAutoConfigurationTests.java   
@Test
public void overrideMessageCodesFormat() throws Exception {
    load(AllResources.class,
            "spring.mvc.messageCodesResolverFormat:POSTFIX_ERROR_CODE");
    assertThat(this.context.getBean(WebMvcAutoConfigurationAdapter.class)
            .getMessageCodesResolver()).isNotNull();
}
项目:contestparser    文件:WebMvcAutoConfigurationTests.java   
@Test
public void overrideMessageCodesFormat() throws Exception {
    load(AllResources.class,
            "spring.mvc.messageCodesResolverFormat:POSTFIX_ERROR_CODE");
    assertNotNull(this.context.getBean(WebMvcAutoConfigurationAdapter.class)
            .getMessageCodesResolver());
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:WebMvcAutoConfigurationTests.java   
@Test
public void noMessageCodesResolver() throws Exception {
    load(AllResources.class);
    assertThat(this.context.getBean(WebMvcAutoConfigurationAdapter.class)
            .getMessageCodesResolver()).isNull();
}
项目:spring-boot-concourse    文件:WebMvcAutoConfigurationTests.java   
@Test
public void noMessageCodesResolver() throws Exception {
    load(AllResources.class);
    assertThat(this.context.getBean(WebMvcAutoConfigurationAdapter.class)
            .getMessageCodesResolver()).isNull();
}
项目:contestparser    文件:WebMvcAutoConfigurationTests.java   
@Test
public void noMessageCodesResolver() throws Exception {
    load(AllResources.class);
    assertNull(this.context.getBean(WebMvcAutoConfigurationAdapter.class)
            .getMessageCodesResolver());
}