diff options
author | Arnaud Simon <arnaudsimon@apache.org> | 2007-10-11 11:33:50 +0000 |
---|---|---|
committer | Arnaud Simon <arnaudsimon@apache.org> | 2007-10-11 11:33:50 +0000 |
commit | fac3ff20efbdcc29ca1d359367461ee194de7184 (patch) | |
tree | 6ef5482b7806d0229f4dd934195a1fd40ae8b7a8 | |
parent | 0445a64a8c213f854c467e821a71b3b2c9677a55 (diff) | |
download | qpid-python-fac3ff20efbdcc29ca1d359367461ee194de7184.tar.gz |
Updated for respecting 0_10 specific semantics
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@583778 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/client/src/test/java/org/apache/qpid/test/unit/transacted/CommitRollbackTest.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/java/client/src/test/java/org/apache/qpid/test/unit/transacted/CommitRollbackTest.java b/java/client/src/test/java/org/apache/qpid/test/unit/transacted/CommitRollbackTest.java index fe7e79426d..7428dbedc2 100644 --- a/java/client/src/test/java/org/apache/qpid/test/unit/transacted/CommitRollbackTest.java +++ b/java/client/src/test/java/org/apache/qpid/test/unit/transacted/CommitRollbackTest.java @@ -460,8 +460,16 @@ public class CommitRollbackTest extends QpidTestCase } 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); |