X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fcommon%2Factor%2FTestTicker.java;fp=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fcommon%2Factor%2FTestTicker.java;h=0000000000000000000000000000000000000000;hp=3387eca0e635dc6fe2e870cb419f117e2c67b04e;hb=79de9b5f31b21f278994b9d7eef9daabe02602ad;hpb=43fb391bf873b252383a8d736b2651b04da8d40d diff --git a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/common/actor/TestTicker.java b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/common/actor/TestTicker.java deleted file mode 100644 index 3387eca0e6..0000000000 --- a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/common/actor/TestTicker.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2016 Cisco 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.common.actor; - -import com.google.common.base.Ticker; - -/** - * Utility {@link Ticker} where passage of time is explicitly controlled via {@link #increment(long)}. - * - * @author Robert Varga - */ -public final class TestTicker extends Ticker { - private long counter = 0; - - @Override - public long read() { - return counter; - } - - public long increment(final long ticks) { - counter += ticks; - return counter; - } -}