You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2016/06/25 23:47:14 UTC
commons-crypto git commit: Test null input
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 <se...@apache.org>
Authored: Sun Jun 26 00:47:11 2016 +0100
Committer: Sebb <se...@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, ","));
+ }
}