activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r579639 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTestSupport.java
Date Wed, 26 Sep 2007 12:30:45 GMT
Author: jstrachan
Date: Wed Sep 26 05:30:45 2007
New Revision: 579639

URL: http://svn.apache.org/viewvc?rev=579639&view=rev
Log:
minor change to make tests more exclusive to avoid 'em hitting each other

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

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTestSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTestSupport.java?rev=579639&r1=579638&r2=579639&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTestSupport.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTestSupport.java Wed
Sep 26 05:30:45 2007
@@ -58,11 +58,12 @@
     //
     // /////////////////////////////////////////////////////////////////
     protected ActiveMQDestination createDestination(Session session, byte type) throws JMSException
{
+        String name = "TEST." + getClass().getName() + "." + getName();
         switch (type) {
         case ActiveMQDestination.QUEUE_TYPE:
-            return (ActiveMQDestination)session.createQueue("TEST");
+            return (ActiveMQDestination)session.createQueue(name);
         case ActiveMQDestination.TOPIC_TYPE:
-            return (ActiveMQDestination)session.createTopic("TEST");
+            return (ActiveMQDestination)session.createTopic(name);
         case ActiveMQDestination.TEMP_QUEUE_TYPE:
             return (ActiveMQDestination)session.createTemporaryQueue();
         case ActiveMQDestination.TEMP_TOPIC_TYPE:



Mime
View raw message