[
https://issues.apache.org/jira/browse/ARTEMIS-2022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16576850#comment-16576850
]
ASF GitHub Bot commented on ARTEMIS-2022:
-----------------------------------------
Github user michaelandrepearce commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/2237#discussion_r209386511
--- Diff:
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java
---
@@ -1781,6 +1781,66 @@ public void testCountMessagesWithInvalidFilter()
throws Exception {
session.deleteQueue(queue);
}
+ @Test
+ public void testCountMessagesPropertyExist() throws Exception {
+ String key = new String("key_group");
+ String valueGroup1 = "group_1";
+ String valueGroup2 = "group_2";
+
+ SimpleString address = RandomUtil.randomSimpleString();
+ SimpleString queue = RandomUtil.randomSimpleString();
+
+ session.createQueue(address, queue, null, false);
+ ClientProducer producer = session.createProducer(address);
+
+ for (int i = 0; i < 100; i++) {
+ ClientMessage msg = session.createMessage(false);
+ if(i % 3 == 0){
--- End diff --
checkstyle , need to space if and curly
> Create count messages "group by" this property filter
> -----------------------------------------------------
>
> Key: ARTEMIS-2022
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2022
> Project: ActiveMQ Artemis
> Issue Type: New Feature
> Affects Versions: 2.6.3
> Reporter: Arthur Fritz Santiago
> Priority: Major
> Labels: features
>
> Create a new function countMessagesProperty.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)