More tests.

This commit is contained in:
Gary Gregory 2019-08-18 09:57:36 -07:00
parent 616dfe5314
commit 041fdadb42
1 changed files with 6 additions and 0 deletions

View File

@ -1178,6 +1178,12 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest {
}
return false;
}));
assertNull(MapUtils.getBoolean(in, "noKey", (key) -> {
return null;
}));
assertFalse(MapUtils.getBooleanValue(in, "noKey", (key) -> {
return null;
}));
assertEquals(null, MapUtils.getBoolean(null,"noKey"));
// Values are Numbers
assertFalse(MapUtils.getBoolean(in, "keyNumberFalse"));