@Test public void testLoadMultipleProperties() throws Exception { String content = "" + "Truth1 = Beauty1\n" + " Truth2:Beauty2\r" + "Truth3 :Beauty3\r\n" + "Truth4 Beauty4\n" + "fruits apple, banana, pear, \\\n" + " cantaloupe, watermelon, \\\r\n" + " kiwi, mango"; PropertyResolver propertyResolver = load(content); assertThat(propertyResolver.getString("Truth1")).isNotNull().isEqualTo("Beauty1"); assertThat(propertyResolver.getString("Truth2")).isNotNull().isEqualTo("Beauty2"); assertThat(propertyResolver.getString("Truth3")).isNotNull().isEqualTo("Beauty3"); assertThat(propertyResolver.getString("Truth4")).isNotNull().isEqualTo("Beauty4"); assertThat(propertyResolver.getString("fruits")).isNotNull().isEqualTo("apple, banana, pear, cantaloupe, watermelon, kiwi, mango"); }
@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);  }