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%2FRemoteProxyTransactionTest.java;h=e159cf02d975cff85a7dc28f5358109242388914;hb=refs%2Fchanges%2F28%2F74128%2F8;hp=c8bdd276ddc9d8bc69a4eed73d94ebdec13cf83c;hpb=698d49f09d9ba58bf400578742a7ac1b06349f11;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/RemoteProxyTransactionTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/RemoteProxyTransactionTest.java index c8bdd276dd..e159cf02d9 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/RemoteProxyTransactionTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/RemoteProxyTransactionTest.java @@ -13,10 +13,10 @@ import static org.hamcrest.CoreMatchers.isA; import static org.opendaylight.controller.cluster.databroker.actors.dds.TestUtils.assertFutureEquals; import akka.testkit.TestProbe; -import com.google.common.base.Optional; -import com.google.common.util.concurrent.CheckedFuture; +import com.google.common.util.concurrent.FluentFuture; import com.google.common.util.concurrent.ListenableFuture; import java.util.List; +import java.util.Optional; import org.junit.Assert; import org.junit.Test; import org.opendaylight.controller.cluster.access.commands.ExistsTransactionRequest; @@ -37,7 +37,6 @@ import org.opendaylight.controller.cluster.access.commands.TransactionPreCommitR import org.opendaylight.controller.cluster.access.commands.TransactionPreCommitSuccess; import org.opendaylight.controller.cluster.access.commands.TransactionWrite; import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier; -import org.opendaylight.mdsal.common.api.ReadFailedException; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode; import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeSnapshot; @@ -54,7 +53,7 @@ public class RemoteProxyTransactionTest extends AbstractProxyTransactionTest tester = getTester(); - final CheckedFuture exists = transaction.exists(PATH_1); + final FluentFuture exists = transaction.exists(PATH_1); final ExistsTransactionRequest req = tester.expectTransactionRequest(ExistsTransactionRequest.class); final boolean existsResult = true; tester.replySuccess(new ExistsTransactionSuccess(TRANSACTION_ID, req.getSequence(), existsResult)); @@ -65,7 +64,7 @@ public class RemoteProxyTransactionTest extends AbstractProxyTransactionTest tester = getTester(); - final CheckedFuture>, ReadFailedException> read = transaction.read(PATH_2); + final FluentFuture>> read = transaction.read(PATH_2); final ReadTransactionRequest req = tester.expectTransactionRequest(ReadTransactionRequest.class); final Optional> result = Optional.of(DATA_1); tester.replySuccess(new ReadTransactionSuccess(TRANSACTION_ID, req.getSequence(), result)); @@ -233,4 +232,4 @@ public class RemoteProxyTransactionTest extends AbstractProxyTransactionTest