minor change to make tests more exclusive to avoid 'em hitting each other

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@579639 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2007-09-26 12:30:45 +00:00
parent d48322690f
commit 8cad176f68
1 changed files with 3 additions and 2 deletions

View File

@ -58,11 +58,12 @@ public class JmsTestSupport extends CombinationTestSupport {
//
// /////////////////////////////////////////////////////////////////
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: