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