@Test public void testGetResourceAsProperties_fromJar_unknownProperty() throws IOException { final Properties properties = resourceHandler.getResourceAsProperties("stupid_and_invalid.properties"); assertNotNull(properties); assertEquals(0, properties.size()); }
Properties getResourceAsProperties(String path) throws IOException { final Properties properties = new Properties(); final InputStream is = getResourceStream(path); if (is != null) { properties.load(is); is.close(); } return properties; }
ResourceHandler { Properties getResourceAsProperties(String path) throws IOException { final Properties properties = new Properties(); final InputStream is = getResourceStream(path); if (is != null) { properties.load(is); is.close(); } return properties; } }
ResourceHandler { Properties getResourceAsProperties(String path) throws IOException { final Properties properties = new Properties(); final InputStream is = getResourceStream(path); if (is != null) { properties.load(is); is.close(); } return properties; }  }
ResourceHandler { Properties getResourceAsProperties(String path) throws IOException { final Properties properties = new Properties(); final InputStream is = getResourceStream(path); if (is != null) { properties.load(is); is.close(); } return properties; }   }
ResourceHandler { Properties getResourceAsProperties(String path) throws IOException { final Properties properties = new Properties(); final InputStream is = getResourceStream(path); if (is != null) { properties.load(is); is.close(); } return properties; }    }