TestMessageSource Class — spring-boot Architecture
Architecture documentation for the TestMessageSource class in MessageSourceAutoConfigurationTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/context/MessageSourceAutoConfigurationTests.java lines 269–291
static class TestMessageSource implements MessageSource {
@Override
public String getMessage(String code, Object @Nullable [] args, @Nullable String defaultMessage,
@Nullable Locale locale) {
return code;
}
@Override
public String getMessage(String code, Object @Nullable [] args, @Nullable Locale locale) {
return code;
}
@Override
public String getMessage(MessageSourceResolvable resolvable, @Nullable Locale locale) {
String[] codes = resolvable.getCodes();
if (codes == null) {
throw new NoSuchMessageException("codes is null");
}
return codes[0];
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free