michaelpearce-gain commented on a change in pull request #2802: ARTEMIS-2457 
implement ring queue
URL: https://github.com/apache/activemq-artemis/pull/2802#discussion_r317417190
 
 

 ##########
 File path: 
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlTest.java
 ##########
 @@ -335,6 +335,66 @@ public void testCreateAndDestroyQueue_4() throws 
Exception {
       checkNoResource(ObjectNameBuilder.DEFAULT.getAddressObjectName(address));
    }
 
+   @Test
+   public void testCreateAndDestroyQueue_5() throws Exception {
+      SimpleString address = RandomUtil.randomSimpleString();
+      SimpleString name = RandomUtil.randomSimpleString();
+      boolean durable = RandomUtil.randomBoolean();
+      int maxConsumers = RandomUtil.randomInt();
+      boolean purgeOnNoConsumers = RandomUtil.randomBoolean();
+      boolean exclusive = RandomUtil.randomBoolean();
+      boolean groupRebalance = RandomUtil.randomBoolean();
+      int groupBuckets = 1;
+      String groupFirstKey = RandomUtil.randomSimpleString().toString();
+      boolean lastValue = false;
+      String lastValueKey = null;
+      boolean nonDestructive = RandomUtil.randomBoolean();
+      int consumersBeforeDispatch = RandomUtil.randomInt();
+      long delayBeforeDispatch = RandomUtil.randomLong();
+      boolean autoDelete = RandomUtil.randomBoolean();
+      long autoDeleteDelay = RandomUtil.randomLong();
+      long autoDeleteMessageCount = RandomUtil.randomLong();
+      boolean autoCreateAddress = true;
+      long ringSize = RandomUtil.randomLong();
+
+      ActiveMQServerControl serverControl = createManagementControl();
+
+      checkNoResource(ObjectNameBuilder.DEFAULT.getQueueObjectName(address, 
name, RoutingType.ANYCAST));
+      serverControl.createQueue(address.toString(), 
RoutingType.ANYCAST.toString(), name.toString(), null, durable, maxConsumers, 
purgeOnNoConsumers, exclusive, groupRebalance, groupBuckets, groupFirstKey, 
lastValue, lastValueKey, nonDestructive, consumersBeforeDispatch, 
delayBeforeDispatch, autoDelete, autoDeleteDelay, autoDeleteMessageCount, 
autoCreateAddress, ringSize);
+
+      checkResource(ObjectNameBuilder.DEFAULT.getQueueObjectName(address, 
name, RoutingType.ANYCAST));
+      QueueControl queueControl = 
ManagementControlHelper.createQueueControl(address, name, RoutingType.ANYCAST, 
mbeanServer);
+      Assert.assertEquals(address.toString(), queueControl.getAddress());
+      Assert.assertEquals(name.toString(), queueControl.getName());
+      Assert.assertNull(queueControl.getFilter());
+      Assert.assertEquals(durable, queueControl.isDurable());
+      Assert.assertEquals(maxConsumers, queueControl.getMaxConsumers());
+      Assert.assertEquals(purgeOnNoConsumers, 
queueControl.isPurgeOnNoConsumers());
+      Assert.assertEquals(false, queueControl.isTemporary());
+      Assert.assertEquals(exclusive, queueControl.isExclusive());
+//      Assert.assertEquals(groupRebalance, queueControl.getGroupRebalance());
+//      Assert.assertEquals(groupBuckets, queueControl.getGroupBuckets());
+//      Assert.assertEquals(groupFirstKey, queueControl.getGroupFirstKey());
+      Assert.assertEquals(lastValue, queueControl.isLastValue());
+//      Assert.assertEquals(lastValueKey, queueControl.getLastValueKey());
 
 Review comment:
   either comment it in, or remove.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to