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%2FClientBackedReadTransactionTest.java;h=8333b4875e4f6b5e29a366c17c6b838deaf6babd;hb=731e7284cf0895fdb1b89427f91762e80e67c2ff;hp=fcba12bdd7f3ef3ac9eae1dc9d9bff7699bb140e;hpb=e3abb5765cd5a3dba4616b875b6026f1efc460e9;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedReadTransactionTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedReadTransactionTest.java index fcba12bdd7..8333b4875e 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedReadTransactionTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedReadTransactionTest.java @@ -8,8 +8,8 @@ package org.opendaylight.controller.cluster.databroker; import com.google.common.base.Optional; -import com.google.common.util.concurrent.CheckedFuture; import com.google.common.util.concurrent.Futures; +import com.google.common.util.concurrent.ListenableFuture; import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -18,7 +18,6 @@ import org.mockito.Mockito; import org.mockito.MockitoAnnotations; import org.opendaylight.controller.cluster.access.client.ClientActorContext; import org.opendaylight.controller.cluster.databroker.actors.dds.ClientSnapshot; -import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode; @@ -54,7 +53,7 @@ public class ClientBackedReadTransactionTest extends ClientBackedTransactionTest @Test public void testRead() throws Exception { - final CheckedFuture>, ReadFailedException> result = object().read( + final ListenableFuture>> result = object().read( YangInstanceIdentifier.EMPTY); final Optional> resultData = result.get(); Assert.assertTrue(resultData.isPresent()); @@ -63,7 +62,7 @@ public class ClientBackedReadTransactionTest extends ClientBackedTransactionTest @Test public void testExists() throws Exception { - final CheckedFuture result = object().exists(YangInstanceIdentifier.EMPTY); + final ListenableFuture result = object().exists(YangInstanceIdentifier.EMPTY); Assert.assertTrue(result.get()); } } \ No newline at end of file