added the ability to have a default value for getBoolean

Former-commit-id: 3768e635a48b42f198fd9e11a248f93cc8662aaa
This commit is contained in:
Jeremy Long
2014-03-23 00:36:10 -04:00
parent c80fdee99b
commit b2a5963f5a
2 changed files with 43 additions and 0 deletions

View File

@@ -155,6 +155,11 @@ public class SettingsTest {
boolean expResult = false;
boolean result = Settings.getBoolean(key);
Assert.assertEquals(expResult, result);
key = "something that does not exist";
expResult = true;
result = Settings.getBoolean(key, true);
Assert.assertEquals(expResult, result);
}
/**