use of org.springframework.validation.DefaultMessageCodesResolver in project spring-framework by spring-projects.
the class DelegatingWebMvcConfigurationTests method getCustomMessageCodesResolver.
@Test
public void getCustomMessageCodesResolver() {
given(webMvcConfigurer.getMessageCodesResolver()).willReturn(new DefaultMessageCodesResolver());
webMvcConfig.setConfigurers(Collections.singletonList(webMvcConfigurer));
webMvcConfig.getMessageCodesResolver();
verify(webMvcConfigurer).getMessageCodesResolver();
}
use of org.springframework.validation.DefaultMessageCodesResolver in project spring-framework-5.2.9.RELEASE by somepeopleHavingDream.
the class DelegatingWebMvcConfigurationTests method getCustomMessageCodesResolver.
@Test
public void getCustomMessageCodesResolver() {
given(webMvcConfigurer.getMessageCodesResolver()).willReturn(new DefaultMessageCodesResolver());
delegatingConfig.setConfigurers(Collections.singletonList(webMvcConfigurer));
delegatingConfig.getMessageCodesResolver();
verify(webMvcConfigurer).getMessageCodesResolver();
}
use of org.springframework.validation.DefaultMessageCodesResolver in project spring-framework-debug by Joker-5.
the class DelegatingWebMvcConfigurationTests method getCustomMessageCodesResolver.
@Test
public void getCustomMessageCodesResolver() {
given(webMvcConfigurer.getMessageCodesResolver()).willReturn(new DefaultMessageCodesResolver());
delegatingConfig.setConfigurers(Collections.singletonList(webMvcConfigurer));
delegatingConfig.getMessageCodesResolver();
verify(webMvcConfigurer).getMessageCodesResolver();
}
Aggregations