diff options
author | Rajith Muditha Attapattu <rajith@apache.org> | 2011-10-14 22:29:03 +0000 |
---|---|---|
committer | Rajith Muditha Attapattu <rajith@apache.org> | 2011-10-14 22:29:03 +0000 |
commit | 390b6b48b9808a1862b48b3e324451b95f465ed4 (patch) | |
tree | 8190d53d1c3d3022690be7a0b39dd848331a74e0 /java/client/src/test/java/org/apache/qpid/client/AMQSession_0_10Test.java | |
parent | c77eff7738c4bd8424fd2205788a3f34ace13df5 (diff) | |
download | qpid-python-390b6b48b9808a1862b48b3e324451b95f465ed4.tar.gz |
QPID-3401 Checking the proposed changes into a branch to preserve history & continue working until such time it's accepted into trunk.address-refactor
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor@1183532 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/src/test/java/org/apache/qpid/client/AMQSession_0_10Test.java')
-rw-r--r-- | java/client/src/test/java/org/apache/qpid/client/AMQSession_0_10Test.java | 13 |
1 files changed, 6 insertions, 7 deletions
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) { |