[jboss-cvs] JBoss Messaging SVN: r2835 - trunk/tests/src/org/jboss/test/messaging/jms.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jul 4 07:19:20 EDT 2007
Author: timfox
Date: 2007-07-04 07:19:20 -0400 (Wed, 04 Jul 2007)
New Revision: 2835
Modified:
trunk/tests/src/org/jboss/test/messaging/jms/DurableSubscriptionTest.java
Log:
http://jira.jboss.com/jira/browse/JBMESSAGING-566
Modified: trunk/tests/src/org/jboss/test/messaging/jms/DurableSubscriptionTest.java
===================================================================
--- trunk/tests/src/org/jboss/test/messaging/jms/DurableSubscriptionTest.java 2007-07-04 11:18:09 UTC (rev 2834)
+++ trunk/tests/src/org/jboss/test/messaging/jms/DurableSubscriptionTest.java 2007-07-04 11:19:20 UTC (rev 2835)
@@ -283,59 +283,6 @@
conn.close();
}
- /**
- * JMS 1.1 6.11.1: A client can change an existing durable subscription by creating a durable
- * TopicSubscriber with the same name and a new topic and/or message selector, or NoLocal
- * attribute. Changing a durable subscription is equivalent to deleting and recreating it.
- *
- * Test with a different noLocal flag.
- */
- // Disabled until the validity of the test is established:
- // http://jira.jboss.org/jira/browse/JBMESSAGING-566
-// public void testDurableSubscriptionDifferentNoLocal() throws Exception
-// {
-// ConnectionFactory cf = (ConnectionFactory)ic.lookup("ConnectionFactory");
-// Topic topic = (Topic)ic.lookup("/topic/Topic");
-//
-// Connection conn = cf.createConnection();
-// conn.setClientID("ID0");
-//
-// Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
-// MessageProducer prod = s.createProducer(topic);
-// prod.setDeliveryMode(DeliveryMode.PERSISTENT);
-//
-// MessageConsumer durable = s.createDurableSubscriber(topic, "mySubscription", null, false);
-//
-// TextMessage tm = null;
-// tm = s.createTextMessage("Message One");
-// prod.send(tm);
-// tm = s.createTextMessage("Message Two");
-// prod.send(tm);
-//
-//
-// conn.start();
-//
-// TextMessage rm = (TextMessage)durable.receive(5000);
-// assertEquals("Message One", rm.getText());
-//
-// conn.close();
-//
-// conn = cf.createConnection();
-// conn.setClientID("ID0");
-// s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
-//
-// // modify the nolocal flag
-// durable = s.createDurableSubscriber(topic, "mySubscription", null, true);
-//
-// conn.start();
-//
-// Message m = durable.receive(1000);
-//
-// // the durable subscription is destroyed and re-created. "Message Two" stored by the previous
-// // durable subscription is lost and (hopefully) garbage collected.
-// assertNull(m);
-// }
-
public void testDurableSubscriptionOnTemporaryTopic() throws Exception
{
ConnectionFactory cf = (ConnectionFactory)ic.lookup("ConnectionFactory");
More information about the jboss-cvs-commits
mailing list