@Test public void overrideMessageCodesFormat() throws Exception { load(AllResources.class, "spring.mvc.messageCodesResolverFormat:POSTFIX_ERROR_CODE"); assertThat(this.context.getBean(WebMvcAutoConfigurationAdapter.class) .getMessageCodesResolver()).isNotNull(); }
@Test public void overrideMessageCodesFormat() throws Exception { load(AllResources.class, "spring.mvc.messageCodesResolverFormat:POSTFIX_ERROR_CODE"); assertNotNull(this.context.getBean(WebMvcAutoConfigurationAdapter.class) .getMessageCodesResolver()); }
@Test public void noMessageCodesResolver() throws Exception { load(AllResources.class); assertThat(this.context.getBean(WebMvcAutoConfigurationAdapter.class) .getMessageCodesResolver()).isNull(); }
@Test public void noMessageCodesResolver() throws Exception { load(AllResources.class); assertNull(this.context.getBean(WebMvcAutoConfigurationAdapter.class) .getMessageCodesResolver()); }