From 390b6b48b9808a1862b48b3e324451b95f465ed4 Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Fri, 14 Oct 2011 22:29:03 +0000 Subject: QPID-3401 Checking the proposed changes into a branch to preserve history & continue working until such time it's accepted into trunk. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor@1183532 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/client/AMQSession_0_10Test.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'java/client/src/test') diff --git a/java/client/src/test/java/org/apache/qpid/client/AMQSession_0_10Test.java b/java/client/src/test/java/org/apache/qpid/client/AMQSession_0_10Test.java index 849827216c..674f16fe3d 100644 --- a/java/client/src/test/java/org/apache/qpid/client/AMQSession_0_10Test.java +++ b/java/client/src/test/java/org/apache/qpid/client/AMQSession_0_10Test.java @@ -154,7 +154,7 @@ public class AMQSession_0_10Test extends TestCase public void testExceptionOnCreateConsumer() { AMQSession_0_10 session = createThrowingExceptionAMQSession_0_10(); - AMQAnyDestination destination = createDestination(); + AMQDestination destination = createDestination(); try { session.createConsumer(destination); @@ -170,10 +170,9 @@ public class AMQSession_0_10Test extends TestCase public void testExceptionOnCreateSubscriber() { AMQSession_0_10 session = createThrowingExceptionAMQSession_0_10(); - AMQAnyDestination destination = createDestination(); try { - session.createSubscriber(destination); + session.createSubscriber(new AMQTopic(new AMQShortString("amq.topic"),new AMQShortString("test"))); fail("JMSException should be thrown"); } catch (Exception e) @@ -518,13 +517,13 @@ public class AMQSession_0_10Test extends TestCase assertNotNull("ExchangeDeclare event was not sent", event); } - private AMQAnyDestination createDestination() + private AMQDestination createDestination() { - AMQAnyDestination destination = null; + AMQDestination destination = null; try { - destination = new AMQAnyDestination(new AMQShortString("amq.direct"), new AMQShortString("direct"), - new AMQShortString("test"), false, true, new AMQShortString("test"), true, null); + destination = new AMQQueue(new AMQShortString("amq.direct"), new AMQShortString("direct"), + new AMQShortString("test"),new AMQShortString("test"), false, true, true, null); } catch (Exception e) { -- cgit v1.2.1