BUG-865; do not use DurationStatsTracker 46/27046/1
authorRobert Varga <rovarga@cisco.com>
Wed, 16 Sep 2015 12:40:22 +0000 (14:40 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 16 Sep 2015 12:41:08 +0000 (14:41 +0200)
The class has been deprecated, use the alternative.

Change-Id: I29bd049450c0d5e6b3c2a8801538213c58f37c62
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-dom-broker/src/test/java/org/opendaylight/controller/md/sal/dom/broker/impl/jmx/CommitStatsMXBeanImplTest.java

index 613b7a60ab986521c271e3055f68476dab69d37d..167e8551bf00bbf14513a6f74e5475478927b5ed 100644 (file)
@@ -12,7 +12,7 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 
 import org.junit.Test;
-import org.opendaylight.yangtools.util.DurationStatsTracker;
+import org.opendaylight.yangtools.util.DurationStatisticsTracker;
 
 /**
  * Unit tests for CommitStatsMXBeanImpl.
@@ -24,7 +24,7 @@ public class CommitStatsMXBeanImplTest {
     @Test
     public void test() {
 
-        DurationStatsTracker commitStatsTracker = new DurationStatsTracker();
+        DurationStatisticsTracker commitStatsTracker = DurationStatisticsTracker.createConcurrent();
         CommitStatsMXBeanImpl bean =
                 new CommitStatsMXBeanImpl(commitStatsTracker, "Test");