diff options
author | Robert Godfrey <rgodfrey@apache.org> | 2014-02-17 20:19:36 +0000 |
---|---|---|
committer | Robert Godfrey <rgodfrey@apache.org> | 2014-02-17 20:19:36 +0000 |
commit | add5c695d1138bc25bb89cd0e1b1724bf542f676 (patch) | |
tree | f222dd1710831dc383ada64bc4479bcfd4c8bbc4 /java/broker-core/src/test/java/org/apache/qpid/server/queue/ConflationQueueListTest.java | |
parent | e31aa33452bd54ce118078ad38d8291cc3a3d1db (diff) | |
download | qpid-python-add5c695d1138bc25bb89cd0e1b1724bf542f676.tar.gz |
Update Queue implementation to better define lifetime and exclusivity policiesjava-broker-amqp-1-0-management
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/java-broker-amqp-1-0-management@1569102 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/broker-core/src/test/java/org/apache/qpid/server/queue/ConflationQueueListTest.java')
-rw-r--r-- | java/broker-core/src/test/java/org/apache/qpid/server/queue/ConflationQueueListTest.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/java/broker-core/src/test/java/org/apache/qpid/server/queue/ConflationQueueListTest.java b/java/broker-core/src/test/java/org/apache/qpid/server/queue/ConflationQueueListTest.java index c2291f5eed..42b83d8c47 100644 --- a/java/broker-core/src/test/java/org/apache/qpid/server/queue/ConflationQueueListTest.java +++ b/java/broker-core/src/test/java/org/apache/qpid/server/queue/ConflationQueueListTest.java @@ -26,9 +26,11 @@ import junit.framework.TestCase; import org.apache.qpid.server.message.MessageReference; import org.apache.qpid.server.message.AMQMessageHeader; import org.apache.qpid.server.message.ServerMessage; +import org.apache.qpid.server.model.Queue; import org.apache.qpid.server.virtualhost.VirtualHost; -import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.UUID; public class ConflationQueueListTest extends TestCase @@ -46,8 +48,11 @@ public class ConflationQueueListTest extends TestCase protected void setUp() throws Exception { super.setUp(); - _queue = new ConflationQueue(UUID.randomUUID(), getName(), false, null, false, false, mock(VirtualHost.class), - Collections.<String,Object>emptyMap(),CONFLATION_KEY); + Map<String,Object> queueAttributes = new HashMap<String, Object>(); + queueAttributes.put(Queue.ID, UUID.randomUUID()); + queueAttributes.put(Queue.NAME, getName()); + queueAttributes.put(Queue.LVQ_KEY, CONFLATION_KEY); + _queue = new ConflationQueue(mock(VirtualHost.class), null, queueAttributes); _list = _queue.getEntries(); } |