1 18 package org.apache.activemq.management; 19 20 import org.apache.activemq.management.BoundaryStatisticImpl; 21 22 public class BoundaryStatisticTest extends StatisticTestSupport { 23 24 private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory 25 .getLog(BoundaryStatisticTest.class); 26 27 31 public void testStatistic() throws Exception { 32 BoundaryStatisticImpl stat = new BoundaryStatisticImpl("myBoundaryStat", "seconds", "myBoundaryStatDesc", 1000, 2000); 33 assertStatistic(stat, "myBoundaryStat", "seconds", "myBoundaryStatDesc"); 34 35 assertEquals(1000, stat.getLowerBound()); 36 assertEquals(2000, stat.getUpperBound()); 37 38 log.info("Stat is: " + stat); 39 } 40 } 41 | Popular Tags |