@Test public void testIsEnabledEmptyMap() throws Exception { Preferences preferences = new Preferences(); assertFalse(preferences.isEnabled("true")); }
public boolean isEnabled(String property) { return MapUtils.isNotEmpty(booleanProperties) && booleanProperties.containsKey(property) && booleanProperties.get(property); }
Preferences { public boolean isEnabled(String property) { return MapUtils.isNotEmpty(booleanProperties) && booleanProperties.containsKey(property) && booleanProperties.get(property); } }
Preferences { public boolean isEnabled(String property) { return MapUtils.isNotEmpty(booleanProperties) && booleanProperties.containsKey(property) && booleanProperties.get(property); }  }
Preferences { public boolean isEnabled(String property) { return MapUtils.isNotEmpty(booleanProperties) && booleanProperties.containsKey(property) && booleanProperties.get(property); }  Map<String, Boolean> getBooleanProperties(); void addProperty(String name, boolean value); void addProperty(String name, int value); void addUrlPattern(String pattern); void setBooleanProperties(Map<String, Boolean> booleanProperties); Map<String, Integer> getIntegerProperties(); void setIntegerProperties(Map<String, Integer> integerProperties); List<String> getUrlPatterns(); void setUrlPatterns(List<String> urlPatterns); boolean isUrlAcceptable(String url); boolean isEnabled(String property); boolean isRegexEnabled(String name); Integer getIntValue(String property); @Override boolean equals(Object o); @Override int hashCode(); }
Preferences { public boolean isEnabled(String property) { return MapUtils.isNotEmpty(booleanProperties) && booleanProperties.containsKey(property) && booleanProperties.get(property); }  Map<String, Boolean> getBooleanProperties(); void addProperty(String name, boolean value); void addProperty(String name, int value); void addUrlPattern(String pattern); void setBooleanProperties(Map<String, Boolean> booleanProperties); Map<String, Integer> getIntegerProperties(); void setIntegerProperties(Map<String, Integer> integerProperties); List<String> getUrlPatterns(); void setUrlPatterns(List<String> urlPatterns); boolean isUrlAcceptable(String url); boolean isEnabled(String property); boolean isRegexEnabled(String name); Integer getIntValue(String property); @Override boolean equals(Object o); @Override int hashCode();  }