qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arnaudsi...@apache.org
Subject svn commit: r583778 - /incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/transacted/CommitRollbackTest.java
Date Thu, 11 Oct 2007 11:33:51 GMT
Author: arnaudsimon
Date: Thu Oct 11 04:33:50 2007
New Revision: 583778

URL: http://svn.apache.org/viewvc?rev=583778&view=rev
Log:
Updated for respecting 0_10 specific semantics

Modified:
    incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/transacted/CommitRollbackTest.java

Modified: incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/transacted/CommitRollbackTest.java
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/transacted/CommitRollbackTest.java?rev=583778&r1=583777&r2=583778&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/transacted/CommitRollbackTest.java
(original)
+++ incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/transacted/CommitRollbackTest.java
Thu Oct 11 04:33:50 2007
@@ -460,8 +460,16 @@
         }
 
         result = _consumer.receive(1000);
-        assertNotNull("test message was consumed and rolled back, but is gone", result);
-        assertTrue("Messasge is not marked as redelivered" + result, result.getJMSRedelivered());
+
+        if( isBroker08() )
+        {
+             assertNotNull("test message was consumed and rolled back, but is gone", result);
+             assertTrue("Messasge is not marked as redelivered" + result, result.getJMSRedelivered());
+        }
+        else
+        {
+            assertNull("test message was consumed and not rolled back, but is redelivered",
result);                
+        }
 
         result = _consumer.receive(1000);
         assertNull("test message should be null:" + result, result);



Mime
View raw message