Repository: qpid-jms
Updated Branches:
  refs/heads/master cd90f6b07 -> bc6c7a3ab


QPIDJMS-207 Add some additional tests.

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/bc6c7a3a
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/bc6c7a3a
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/bc6c7a3a

Branch: refs/heads/master
Commit: bc6c7a3ab0ccddcf212b3e2bae6e2d7a0c8d9cae
Parents: cd90f6b
Author: Timothy Bish <tabish...@gmail.com>
Authored: Wed Sep 21 18:59:06 2016 -0400
Committer: Timothy Bish <tabish...@gmail.com>
Committed: Wed Sep 21 18:59:06 2016 -0400

----------------------------------------------------------------------
 .../JmsDefaultDeserializationPolicyTest.java      | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/bc6c7a3a/qpid-jms-client/src/test/java/org/apache/qpid/jms/policy/JmsDefaultDeserializationPolicyTest.java
----------------------------------------------------------------------
diff --git 
a/qpid-jms-client/src/test/java/org/apache/qpid/jms/policy/JmsDefaultDeserializationPolicyTest.java
 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/policy/JmsDefaultDeserializationPolicyTest.java
index 93ff466..ccb59ff 100644
--- 
a/qpid-jms-client/src/test/java/org/apache/qpid/jms/policy/JmsDefaultDeserializationPolicyTest.java
+++ 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/policy/JmsDefaultDeserializationPolicyTest.java
@@ -207,9 +207,18 @@ public class JmsDefaultDeserializationPolicyTest {
         assertNotNull(policy.getWhiteList());
         assertTrue(policy.getWhiteList().isEmpty());
 
+        policy.setWhiteList("");
+        assertNotNull(policy.getWhiteList());
+        assertTrue(policy.getWhiteList().isEmpty());
+
         policy.setWhiteList("*");
         assertNotNull(policy.getWhiteList());
         assertFalse(policy.getWhiteList().isEmpty());
+
+        policy.setWhiteList("a,b,c");
+        assertNotNull(policy.getWhiteList());
+        assertFalse(policy.getWhiteList().isEmpty());
+        assertEquals("a,b,c", policy.getWhiteList());
     }
 
     @Test
@@ -221,9 +230,18 @@ public class JmsDefaultDeserializationPolicyTest {
         assertNotNull(policy.getBlackList());
         assertTrue(policy.getBlackList().isEmpty());
 
+        policy.setBlackList("");
+        assertNotNull(policy.getBlackList());
+        assertTrue(policy.getBlackList().isEmpty());
+
         policy.setBlackList("*");
         assertNotNull(policy.getBlackList());
         assertFalse(policy.getBlackList().isEmpty());
+
+        policy.setBlackList("a,b,c");
+        assertNotNull(policy.getBlackList());
+        assertFalse(policy.getBlackList().isEmpty());
+        assertEquals("a,b,c", policy.getBlackList());
     }
 
     @Test


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to