@Test public void testLoadMapProperties() throws Exception { String content = "" + "weekdays[1]=Sunday\n" + "weekdays[2]=Monday\n" + "weekdays[3]=Tuesday\n" + "weekdays[4]=Wednesday\n" + "weekdays[5]=Thursday\n" + "weekdays[6]=Friday\n" + "weekdays[7]=Saturday\n" + "\n" + "colors[red]=#FF0000\n" + "colors[cyan]=#00FFFF\n" + "colors[white]=#FFFFFF\n" + "colors[black]=#000000"; PropertyResolver propertyResolver = load(content); assertThat(propertyResolver.getStringMap("weekdays")).isNotNull().hasSize(7). contains(entry("1", "Sunday"), entry("2", "Monday"), entry("3", "Tuesday"), entry("4", "Wednesday"), entry("5", "Thursday"), entry("6", "Friday"), entry("7", "Saturday")); assertThat(propertyResolver.getStringMap("colors")).isNotNull().hasSize(4). contains(entry("red", "#FF0000"), entry("cyan", "#00FFFF"), entry("white", "#FFFFFF"), entry("black", "#000000")); }
@Override public PropertyResolver load(InputStream inputStream) throws IOException { MatchingReader reader = new MatchingReader(new BufferedReader(new InputStreamReader(inputStream))); return load(reader); }
PropertiesLocalizationLoader implements LocalizationLoader { @Override public PropertyResolver load(InputStream inputStream) throws IOException { MatchingReader reader = new MatchingReader(new BufferedReader(new InputStreamReader(inputStream))); return load(reader); } }
PropertiesLocalizationLoader implements LocalizationLoader { @Override public PropertyResolver load(InputStream inputStream) throws IOException { MatchingReader reader = new MatchingReader(new BufferedReader(new InputStreamReader(inputStream))); return load(reader); }  }
PropertiesLocalizationLoader implements LocalizationLoader { @Override public PropertyResolver load(InputStream inputStream) throws IOException { MatchingReader reader = new MatchingReader(new BufferedReader(new InputStreamReader(inputStream))); return load(reader); }  @Override PropertyResolver load(InputStream inputStream); }
PropertiesLocalizationLoader implements LocalizationLoader { @Override public PropertyResolver load(InputStream inputStream) throws IOException { MatchingReader reader = new MatchingReader(new BufferedReader(new InputStreamReader(inputStream))); return load(reader); }  @Override PropertyResolver load(InputStream inputStream);  }