X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fjmx%2Fmbeans%2FCommitStatsMXBeanImplTest.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fjmx%2Fmbeans%2FCommitStatsMXBeanImplTest.java;h=0000000000000000000000000000000000000000;hb=817d0efe25becd8d457550b11bf985298e169954;hp=d5c10d639034a9af307473700c57a560c70efac0;hpb=1413d39efa41e0b3926e400dbd7ef5e3fac694c2;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/CommitStatsMXBeanImplTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/CommitStatsMXBeanImplTest.java deleted file mode 100644 index d5c10d6390..0000000000 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/CommitStatsMXBeanImplTest.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2014 Brocade Communications Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ - -package org.opendaylight.controller.cluster.datastore.jmx.mbeans; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import org.junit.Test; -import org.opendaylight.yangtools.util.DurationStatisticsTracker; - -/** - * Unit tests for CommitStatsMXBeanImpl. - * - * @author Thomas Pantelis - */ -public class CommitStatsMXBeanImplTest { - - @Test - public void test() { - - DurationStatisticsTracker commitStatsTracker = DurationStatisticsTracker.createConcurrent(); - CommitStatsMXBeanImpl bean = - new CommitStatsMXBeanImpl(commitStatsTracker, "Test"); - - commitStatsTracker.addDuration(100); - - assertEquals("getTotalCommits", 1L, bean.getTotalCommits()); - assertNotNull(bean.getLongestCommitTime()); - assertNotNull(bean.getShortestCommitTime()); - assertNotNull(bean.getAverageCommitTime()); - } -}