Author: robbie
Date: Mon Dec 20 10:48:19 2010
New Revision: 1051048

URL: http://svn.apache.org/viewvc?rev=1051048&view=rev
Log:
QPID-2980: add additional check to test

Modified:
    
qpid/branches/0.5.x-dev/qpid/java/client/src/test/java/org/apache/qpid/client/message/AbstractJMSMessageTest.java

Modified: 
qpid/branches/0.5.x-dev/qpid/java/client/src/test/java/org/apache/qpid/client/message/AbstractJMSMessageTest.java
URL: 
http://svn.apache.org/viewvc/qpid/branches/0.5.x-dev/qpid/java/client/src/test/java/org/apache/qpid/client/message/AbstractJMSMessageTest.java?rev=1051048&r1=1051047&r2=1051048&view=diff
==============================================================================
--- 
qpid/branches/0.5.x-dev/qpid/java/client/src/test/java/org/apache/qpid/client/message/AbstractJMSMessageTest.java
 (original)
+++ 
qpid/branches/0.5.x-dev/qpid/java/client/src/test/java/org/apache/qpid/client/message/AbstractJMSMessageTest.java
 Mon Dec 20 10:48:19 2010
@@ -61,15 +61,16 @@ public class AbstractJMSMessageTest exte
             //expected, ignore.
         }
 
-        //set the value, verify retrieval
+        //set the value, verify retrieval and existence
         abstractMessage.setJMSXDeliveryCount(5);
         assertEquals("Value was incorrect", 5, 
abstractMessage.getIntProperty("JMSXDeliveryCount"));
+        assertTrue("property should exist", 
abstractMessage.propertyExists("JMSXDeliveryCount"));
 
         //remove the property
         abstractMessage.setJMSXDeliveryCount(null);
 
         //verify property is cleared
-        assertFalse("property should not yet exist", 
abstractMessage.propertyExists("JMSXDeliveryCount"));
+        assertFalse("property should not exist", 
abstractMessage.propertyExists("JMSXDeliveryCount"));
 
         //check that retrieving the property now throws the expected NFE
         try 



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to