You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2015/07/29 18:05:32 UTC
activemq git commit: add browseAsTable verification to offline
durable sub mbean
Repository: activemq
Updated Branches:
refs/heads/master 4a603a993 -> 0b8639778
add browseAsTable verification to offline durable sub mbean
Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/0b863977
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/0b863977
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/0b863977
Branch: refs/heads/master
Commit: 0b863977840788b46a46ba1e55695be368447661
Parents: 4a603a9
Author: gtully <ga...@gmail.com>
Authored: Wed Jul 29 17:05:07 2015 +0100
Committer: gtully <ga...@gmail.com>
Committed: Wed Jul 29 17:05:07 2015 +0100
----------------------------------------------------------------------
.../activemq/usecases/DurableSubscriptionOfflineTest.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq/blob/0b863977/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
index db029fd..00fb7de 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
@@ -16,6 +16,7 @@
*/
package org.apache.activemq.usecases;
+import javax.management.openmbean.TabularData;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.broker.jmx.DurableSubscriptionViewMBean;
@@ -133,6 +134,11 @@ public class DurableSubscriptionOfflineTest extends DurableSubscriptionOfflineTe
CompositeData[] data = sub.browse();
assertNotNull(data);
assertEquals(10, data.length);
+
+ TabularData tabularData = sub.browseAsTable();
+ assertNotNull(tabularData);
+ assertEquals(10, tabularData.size());
+
}
@Test(timeout = 60 * 1000)