diff options
| author | Robert Gemmell <robbie@apache.org> | 2010-04-20 14:03:33 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2010-04-20 14:03:33 +0000 |
| commit | 7bd3591dd580d1e5d2034676c4c674ba838eceb8 (patch) | |
| tree | 28834be42cc66b8a7162c2b7a6b94e7f49eddfab /java | |
| parent | 48bf49d3cb0fa77f19b440c6159b573e85fbebd3 (diff) | |
| download | qpid-python-7bd3591dd580d1e5d2034676c4c674ba838eceb8.tar.gz | |
QPID-2097: fix issues with ModelTest to allow it to pass normally: it isnt possible to create autoDelete queues with the JMX interface, and owner should not be expected to be null based on autodelete status.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935927 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
| -rw-r--r-- | java/systests/src/main/java/org/apache/qpid/server/queue/ModelTest.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/server/queue/ModelTest.java b/java/systests/src/main/java/org/apache/qpid/server/queue/ModelTest.java index 078b8f43ce..a1f8295c9b 100644 --- a/java/systests/src/main/java/org/apache/qpid/server/queue/ModelTest.java +++ b/java/systests/src/main/java/org/apache/qpid/server/queue/ModelTest.java @@ -138,7 +138,7 @@ public class ModelTest extends QpidTestCase String owner = null; boolean durable = false; - createViaJMXandValidateViaJMX(name, owner, durable, durable); + createViaJMXandValidateViaJMX(name, owner, durable); } /** @@ -153,7 +153,7 @@ public class ModelTest extends QpidTestCase String owner = null; boolean durable = true; - createViaJMXandValidateViaJMX(name, owner, durable, durable); + createViaJMXandValidateViaJMX(name, owner, durable); // Clean up ManagedBroker managedBroker = @@ -246,8 +246,7 @@ public class ModelTest extends QpidTestCase session.createQueue(new AMQShortString(queueName), autoDelete, durable, exclusive); - validateQueueViaJMX(queueName, exclusive ? ((AMQConnection) connection). - getUsername() : null, durable, autoDelete); + validateQueueViaJMX(queueName, ((AMQConnection) connection).getUsername(), durable, autoDelete); } /** @@ -263,12 +262,12 @@ public class ModelTest extends QpidTestCase * @throws IOException if there is a problem with the JMX connection */ private void createViaJMXandValidateViaJMX(String queueName, String owner, - boolean durable, boolean autoDelete) + boolean durable) throws JMException, IOException { _jmxUtils.createQueue(VIRTUALHOST_NAME, queueName, owner, durable); - validateQueueViaJMX(queueName, owner, durable, autoDelete); + validateQueueViaJMX(queueName, owner, durable, false); } /** |
