add browseAsTable verification to offline durable sub mbean

This commit is contained in:
gtully 2015-07-29 17:05:07 +01:00
parent 4a603a9936
commit 0b86397784
1 changed files with 6 additions and 0 deletions

View File

@ -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)