@Test(expected = IllegalArgumentException.class) public void getLocalePropertiesAsStringShouldThrowIllegalArgumentExceptionWhenLocaleParamIsNull() { this.service.getLocalePropertiesAsString(null); }
@Override public String getLocalePropertiesAsString(String locale) { Assert.notNull(locale); Properties properties = this.internalMessageSource.getMergedPropertiesRepresentation(new Locale(locale)); StringWriter writer = new StringWriter(); properties.keySet().stream().filter(key -> pattern.matcher(key.toString()).find()) .forEach(key -> writer.write(key + "=" + properties.getProperty(key.toString()) + "\n")); return writer.toString(); }
SpringMessageSourceRepresentationService implements MessageSourceRepresentationService { @Override public String getLocalePropertiesAsString(String locale) { Assert.notNull(locale); Properties properties = this.internalMessageSource.getMergedPropertiesRepresentation(new Locale(locale)); StringWriter writer = new StringWriter(); properties.keySet().stream().filter(key -> pattern.matcher(key.toString()).find()) .forEach(key -> writer.write(key + "=" + properties.getProperty(key.toString()) + "\n")); return writer.toString(); } }
SpringMessageSourceRepresentationService implements MessageSourceRepresentationService { @Override public String getLocalePropertiesAsString(String locale) { Assert.notNull(locale); Properties properties = this.internalMessageSource.getMergedPropertiesRepresentation(new Locale(locale)); StringWriter writer = new StringWriter(); properties.keySet().stream().filter(key -> pattern.matcher(key.toString()).find()) .forEach(key -> writer.write(key + "=" + properties.getProperty(key.toString()) + "\n")); return writer.toString(); } @Autowired  SpringMessageSourceRepresentationService(AtsyReloadableResourceBundleMessageSource internalMessageSource);  SpringMessageSourceRepresentationService(
      AtsyReloadableResourceBundleMessageSource internalMessageSource, String patternString); }
SpringMessageSourceRepresentationService implements MessageSourceRepresentationService { @Override public String getLocalePropertiesAsString(String locale) { Assert.notNull(locale); Properties properties = this.internalMessageSource.getMergedPropertiesRepresentation(new Locale(locale)); StringWriter writer = new StringWriter(); properties.keySet().stream().filter(key -> pattern.matcher(key.toString()).find()) .forEach(key -> writer.write(key + "=" + properties.getProperty(key.toString()) + "\n")); return writer.toString(); } @Autowired  SpringMessageSourceRepresentationService(AtsyReloadableResourceBundleMessageSource internalMessageSource);  SpringMessageSourceRepresentationService(
      AtsyReloadableResourceBundleMessageSource internalMessageSource, String patternString); @Override boolean isSupportedLocale(String locale); @Override String getLocalePropertiesAsString(String locale); }
SpringMessageSourceRepresentationService implements MessageSourceRepresentationService { @Override public String getLocalePropertiesAsString(String locale) { Assert.notNull(locale); Properties properties = this.internalMessageSource.getMergedPropertiesRepresentation(new Locale(locale)); StringWriter writer = new StringWriter(); properties.keySet().stream().filter(key -> pattern.matcher(key.toString()).find()) .forEach(key -> writer.write(key + "=" + properties.getProperty(key.toString()) + "\n")); return writer.toString(); } @Autowired  SpringMessageSourceRepresentationService(AtsyReloadableResourceBundleMessageSource internalMessageSource);  SpringMessageSourceRepresentationService(
      AtsyReloadableResourceBundleMessageSource internalMessageSource, String patternString); @Override boolean isSupportedLocale(String locale); @Override String getLocalePropertiesAsString(String locale); static final String DEFAULT_PATTERN_AS_STRING; }