@Test public void testGetStringString() { properties.setProperty("prop_5", ""); assertNotNull(configObject.get("prop_1", null, true)); assertEquals("1", configObject.get("prop_1", null, true)); assertEquals("1", configObject.get("prop_1", null, false)); assertEquals("defaultValue", configObject.get("prop_5", "defaultValue", true)); assertEquals("", configObject.get("prop_5", "", true)); }
public String get(String property) { return get(property, null, true); }
ConfigObject { public String get(String property) { return get(property, null, true); } }
ConfigObject { public String get(String property) { return get(property, null, true); } ConfigObject(File propertiesFile);  ConfigObject(InputStream is);  ConfigObject(String path);  ConfigObject(Properties props); private  ConfigObject(String section, Properties props); private  String(String property); }
ConfigObject { public String get(String property) { return get(property, null, true); } ConfigObject(File propertiesFile);  ConfigObject(InputStream is);  ConfigObject(String path);  ConfigObject(Properties props); private  ConfigObject(String section, Properties props); private  String(String property); static ConfigObject forResource(String resource); static boolean isTrueValue(String value); static boolean isTrueValue(String value, boolean dfault); static boolean isEnabled(String propName); static boolean isEnabled(Properties config, String propName); static boolean isEnabled(String propName, boolean dfault); static boolean isEnabled(Properties config, String propName, boolean dfault); boolean hasProperty(String property); List<String> getPropertyNames(); Properties getProperties(); String get(String property); int getInt(String property); String get(String property, String dfault); String get(String property, boolean emptyIsNull); String get(String property, String dfault, boolean emptyIsDefault); boolean isTrue(String property); boolean isTrue(String property, boolean dfault); String required(String property); @SuppressWarnings("unchecked") T required(String property, Class<T> castTo); File getFile(String property); File getDirectory(String property); Path getPath(String property); String[] getArray(String property); String[] getArray(String property, char separator); String[] requiredArray(String property); String[] requiredArray(String property, char separator); String getParentSection(); ConfigObject getSection(String prefix); boolean hasSection(String prefix); String[] getSubsections(); String[] getSubsections(String parentSection); void set(String property, String value); }
ConfigObject { public String get(String property) { return get(property, null, true); } ConfigObject(File propertiesFile);  ConfigObject(InputStream is);  ConfigObject(String path);  ConfigObject(Properties props); private  ConfigObject(String section, Properties props); private  String(String property); static ConfigObject forResource(String resource); static boolean isTrueValue(String value); static boolean isTrueValue(String value, boolean dfault); static boolean isEnabled(String propName); static boolean isEnabled(Properties config, String propName); static boolean isEnabled(String propName, boolean dfault); static boolean isEnabled(Properties config, String propName, boolean dfault); boolean hasProperty(String property); List<String> getPropertyNames(); Properties getProperties(); String get(String property); int getInt(String property); String get(String property, String dfault); String get(String property, boolean emptyIsNull); String get(String property, String dfault, boolean emptyIsDefault); boolean isTrue(String property); boolean isTrue(String property, boolean dfault); String required(String property); @SuppressWarnings("unchecked") T required(String property, Class<T> castTo); File getFile(String property); File getDirectory(String property); Path getPath(String property); String[] getArray(String property); String[] getArray(String property, char separator); String[] requiredArray(String property); String[] requiredArray(String property, char separator); String getParentSection(); ConfigObject getSection(String prefix); boolean hasSection(String prefix); String[] getSubsections(); String[] getSubsections(String parentSection); void set(String property, String value);  }