summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2010-05-18 17:53:02 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2010-05-18 17:53:02 +0000
commitb24ae5d5f86a934599da95a04bfae5ada6541932 (patch)
tree5bbdaf9a2b0841e49890d5c2fc3d88a37bc45d6d
parentabfe789b522301b1a28228c4a1553e325287224f (diff)
downloadqpid-python-b24ae5d5f86a934599da95a04bfae5ada6541932.tar.gz
Modified the test slightly to make it work against the 0-10 code path.
Verified that it works against the C++ broker and the Java broker (both 0-8 and 0-10 codepaths). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@945789 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/java/systests/src/main/java/org/apache/qpid/test/unit/client/AMQConnectionTest.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/test/unit/client/AMQConnectionTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/test/unit/client/AMQConnectionTest.java
index e434d83454..9ee6103607 100644
--- a/qpid/java/systests/src/main/java/org/apache/qpid/test/unit/client/AMQConnectionTest.java
+++ b/qpid/java/systests/src/main/java/org/apache/qpid/test/unit/client/AMQConnectionTest.java
@@ -230,7 +230,16 @@ public class AMQConnectionTest extends QpidTestCase
producer.send(producerSession.createTextMessage("test"));
}
- MessageConsumer consumerB = consSessA.createConsumer(_queue);
+ MessageConsumer consumerB = null;
+ if (isBroker08())
+ {
+ Session consSessB = _connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
+ consumerB = consSessB.createConsumer(_queue);
+ }
+ else
+ {
+ consumerB = consSessA.createConsumer(_queue);
+ }
Message msg;
// Check that consumer A has 2 messages