From b24ae5d5f86a934599da95a04bfae5ada6541932 Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Tue, 18 May 2010 17:53:02 +0000 Subject: 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 --- .../org/apache/qpid/test/unit/client/AMQConnectionTest.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'qpid/java') 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 -- cgit v1.2.1