mirror of https://github.com/apache/activemq.git
add browseAsTable verification to offline durable sub mbean
This commit is contained in:
parent
4a603a9936
commit
0b86397784
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue