This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push:
new 041fdad More tests.
new 1118a1c Merge branch 'master' of
http://gitbox.apache.org/repos/asf/commons-collections.git
041fdad is described below
commit 041fdadb42ab63c43cb915ca905b42689e457bdb
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Aug 18 09:57:36 2019 -0700
More tests.
---
src/test/java/org/apache/commons/collections4/MapUtilsTest.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/test/java/org/apache/commons/collections4/MapUtilsTest.java
b/src/test/java/org/apache/commons/collections4/MapUtilsTest.java
index 0f80b80..6c72d78 100644
--- a/src/test/java/org/apache/commons/collections4/MapUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/MapUtilsTest.java
@@ -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"));