commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject commons-crypto git commit: Test null input
Date Sat, 25 Jun 2016 23:47:14 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master 1f44456d3 -> 7171e28c5


Test null input

Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/7171e28c
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/7171e28c
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/7171e28c

Branch: refs/heads/master
Commit: 7171e28c5c4bb9141fa4d72fcc92b129af7ad9e9
Parents: 1f44456
Author: Sebb <sebb@apache.org>
Authored: Sun Jun 26 00:47:11 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Sun Jun 26 00:47:11 2016 +0100

----------------------------------------------------------------------
 src/test/java/org/apache/commons/crypto/utils/UtilsTest.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/7171e28c/src/test/java/org/apache/commons/crypto/utils/UtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/crypto/utils/UtilsTest.java b/src/test/java/org/apache/commons/crypto/utils/UtilsTest.java
index 03bcc68..c35f2f6 100644
--- a/src/test/java/org/apache/commons/crypto/utils/UtilsTest.java
+++ b/src/test/java/org/apache/commons/crypto/utils/UtilsTest.java
@@ -37,4 +37,8 @@ public class UtilsTest {
         clazzNames = Utils.splitClassNames("a, b,", ",");
         Assert.assertEquals(Arrays.asList("a", "b"), clazzNames);
     }
+    @Test
+    public void testSplitNull() {
+        Assert.assertEquals(Collections.<String> emptyList(), Utils.splitClassNames(null,
","));
+    }
 }


Mime
View raw message