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%2Fdatabroker%2Factors%2Fdds%2FTestUtils.java;h=092d262ae8fe034ccc83d073a4b585a961a3713f;hb=2d60632f7cf63712e8357a3cf3fc40d83366e5e6;hp=977ada54e63f7e47640d5a98e7d08b19676efb57;hpb=1c717bbf117d3486196a0fdd73ac650721f9c557;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/TestUtils.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/TestUtils.java index 977ada54e6..092d262ae8 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/TestUtils.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/TestUtils.java @@ -17,7 +17,11 @@ import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifie import org.opendaylight.controller.cluster.access.concepts.MemberName; import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier; -class TestUtils { +final class TestUtils { + @FunctionalInterface + public interface RunnableWithException { + void run() throws Exception; + } static final MemberName MEMBER_NAME = MemberName.forName("member-1"); static final FrontendType FRONTEND_TYPE = FrontendType.forName("type-1"); @@ -26,13 +30,12 @@ class TestUtils { static final LocalHistoryIdentifier HISTORY_ID = new LocalHistoryIdentifier(CLIENT_ID, 0L); static final TransactionIdentifier TRANSACTION_ID = new TransactionIdentifier(HISTORY_ID, 0L); - @FunctionalInterface - public interface RunnableWithException { - void run() throws Exception; - } - private static final long TIMEOUT = 3; + private TestUtils() { + + } + /** * Asserts, that future result when it completes is equal to given object. * Future must complete in {@link TestUtils#TIMEOUT} seconds.