@Test public void getBooleanNoMatch() { final Properties properties = new Properties(); properties.put("key", "value"); assertEquals("No match so default value should be used", true, createInstance(properties).getBooleanProperty("anotherKey", true)); }
public boolean getBooleanProperty(String key, boolean defaultValue) { final String value = properties.getProperty(key, String.valueOf(defaultValue)); return Boolean.valueOf(value); }
PropertiesHelper { public boolean getBooleanProperty(String key, boolean defaultValue) { final String value = properties.getProperty(key, String.valueOf(defaultValue)); return Boolean.valueOf(value); } }
PropertiesHelper { public boolean getBooleanProperty(String key, boolean defaultValue) { final String value = properties.getProperty(key, String.valueOf(defaultValue)); return Boolean.valueOf(value); } PropertiesHelper(Properties properties); }
PropertiesHelper { public boolean getBooleanProperty(String key, boolean defaultValue) { final String value = properties.getProperty(key, String.valueOf(defaultValue)); return Boolean.valueOf(value); } PropertiesHelper(Properties properties); boolean getBooleanProperty(String key, boolean defaultValue); int getIntProperty(String key, int defaultValue); }
PropertiesHelper { public boolean getBooleanProperty(String key, boolean defaultValue) { final String value = properties.getProperty(key, String.valueOf(defaultValue)); return Boolean.valueOf(value); } PropertiesHelper(Properties properties); boolean getBooleanProperty(String key, boolean defaultValue); int getIntProperty(String key, int defaultValue);  }