diff options
| author | Aidan Skinner <aidan@apache.org> | 2009-06-23 10:13:12 +0000 |
|---|---|---|
| committer | Aidan Skinner <aidan@apache.org> | 2009-06-23 10:13:12 +0000 |
| commit | f531e5d32e8e903781e8acd5f4e02c3593f3de18 (patch) | |
| tree | 3236f63eab5e8295eb9239363903c75a18f10b90 /qpid/java | |
| parent | 7c5eece2b920b5809748a06bd475ef0b9064bb27 (diff) | |
| download | qpid-python-f531e5d32e8e903781e8acd5f4e02c3593f3de18.tar.gz | |
QPID-1935: Use unique queue name per test run. *sigh*.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@787623 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
| -rw-r--r-- | qpid/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java | 2 | ||||
| -rw-r--r-- | qpid/java/systests/src/main/java/org/apache/qpid/test/client/failover/FailoverTest.java | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java index 82b867f655..62b54d3086 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java +++ b/qpid/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java @@ -61,7 +61,7 @@ public class QueueBrowserAutoAckTest extends FailoverBaseCase setupSession(); - _queue = _clientSession.createQueue(getName()); + _queue = _clientSession.createQueue(getName()+System.currentTimeMillis()); _clientSession.createConsumer(_queue).close(); //Ensure there are no messages on the queue to start with. diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/test/client/failover/FailoverTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/test/client/failover/FailoverTest.java index b7ae911a49..9bca1ec39f 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/test/client/failover/FailoverTest.java +++ b/qpid/java/systests/src/main/java/org/apache/qpid/test/client/failover/FailoverTest.java @@ -82,9 +82,8 @@ public class FailoverTest extends FailoverBaseCase implements ConnectionListener protected void init(boolean transacted, int mode) throws JMSException, NamingException { - queue = (Queue) getInitialContext().lookup(QUEUE); - consumerSession = connection.createSession(transacted, mode); + queue = consumerSession.createQueue(getName()+System.currentTimeMillis()); consumer = consumerSession.createConsumer(queue); producerSession = connection.createSession(transacted, mode); |
