mirror of https://github.com/apache/activemq.git
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:
parent
d48322690f
commit
8cad176f68
|
@ -58,11 +58,12 @@ public class JmsTestSupport extends CombinationTestSupport {
|
||||||
//
|
//
|
||||||
// /////////////////////////////////////////////////////////////////
|
// /////////////////////////////////////////////////////////////////
|
||||||
protected ActiveMQDestination createDestination(Session session, byte type) throws JMSException {
|
protected ActiveMQDestination createDestination(Session session, byte type) throws JMSException {
|
||||||
|
String name = "TEST." + getClass().getName() + "." + getName();
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case ActiveMQDestination.QUEUE_TYPE:
|
case ActiveMQDestination.QUEUE_TYPE:
|
||||||
return (ActiveMQDestination)session.createQueue("TEST");
|
return (ActiveMQDestination)session.createQueue(name);
|
||||||
case ActiveMQDestination.TOPIC_TYPE:
|
case ActiveMQDestination.TOPIC_TYPE:
|
||||||
return (ActiveMQDestination)session.createTopic("TEST");
|
return (ActiveMQDestination)session.createTopic(name);
|
||||||
case ActiveMQDestination.TEMP_QUEUE_TYPE:
|
case ActiveMQDestination.TEMP_QUEUE_TYPE:
|
||||||
return (ActiveMQDestination)session.createTemporaryQueue();
|
return (ActiveMQDestination)session.createTemporaryQueue();
|
||||||
case ActiveMQDestination.TEMP_TOPIC_TYPE:
|
case ActiveMQDestination.TEMP_TOPIC_TYPE:
|
||||||
|
|
Loading…
Reference in New Issue