activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r513810 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsClientAckTest.java
Date Fri, 02 Mar 2007 15:31:50 GMT
Author: jstrachan
Date: Fri Mar  2 07:31:49 2007
New Revision: 513810

URL: http://svn.apache.org/viewvc?view=rev&rev=513810
Log:
minor change to improve the test case

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsClientAckTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsClientAckTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsClientAckTest.java?view=diff&rev=513810&r1=513809&r2=513810
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsClientAckTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsClientAckTest.java Fri
Mar  2 07:31:49 2007
@@ -56,7 +56,7 @@
     public void testAckedMessageAreConsumed() throws JMSException {
         connection.start();
         Session session = connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
-        Queue queue = session.createQueue("test");
+        Queue queue = session.createQueue(getQueueName());
         MessageProducer producer = session.createProducer(queue);
         producer.send(session.createTextMessage("Hello"));
 
@@ -86,7 +86,7 @@
     public void testLastMessageAcked() throws JMSException {
         connection.start();
         Session session = connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
-        Queue queue = session.createQueue("test");
+        Queue queue = session.createQueue(getQueueName());
         MessageProducer producer = session.createProducer(queue);
         producer.send(session.createTextMessage("Hello"));
         producer.send(session.createTextMessage("Hello2"));
@@ -122,7 +122,7 @@
     public void testUnAckedMessageAreNotConsumedOnSessionClose() throws JMSException {
         connection.start();
         Session session = connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
-        Queue queue = session.createQueue("test");
+        Queue queue = session.createQueue(getQueueName());
         MessageProducer producer = session.createProducer(queue);
         producer.send(session.createTextMessage("Hello"));
 
@@ -144,4 +144,9 @@
         
         session.close();
     }
+
+    protected String getQueueName() {
+        return getClass().getName() + "." + getName();
+    }
+
 }



Mime
View raw message