X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fsharding%2FCDSShardAccessImplTest.java;h=e79222fa51e56b1ca839b45735d92abbedb26209;hp=1ece8627d593e1dad846d1929611e3fdf7623b44;hb=a35607c5040d0fd561529fde3032c9f49393deeb;hpb=808a02471eef0f975c13fc948f933fac34ada387 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/sharding/CDSShardAccessImplTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/sharding/CDSShardAccessImplTest.java index 1ece8627d5..e79222fa51 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/sharding/CDSShardAccessImplTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/sharding/CDSShardAccessImplTest.java @@ -10,8 +10,8 @@ package org.opendaylight.controller.cluster.sharding; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.eq; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.doThrow; @@ -21,14 +21,14 @@ import static org.mockito.Mockito.verifyNoMoreInteractions; import akka.actor.ActorRef; import akka.dispatch.Futures; -import com.google.common.base.Optional; +import java.util.Optional; import java.util.concurrent.TimeUnit; import org.junit.Before; import org.junit.Test; import org.opendaylight.controller.cluster.datastore.AbstractActorTest; import org.opendaylight.controller.cluster.datastore.DatastoreContext; import org.opendaylight.controller.cluster.datastore.exceptions.LocalShardNotFoundException; -import org.opendaylight.controller.cluster.datastore.utils.ActorContext; +import org.opendaylight.controller.cluster.datastore.utils.ActorUtils; import org.opendaylight.controller.cluster.dom.api.LeaderLocation; import org.opendaylight.controller.cluster.dom.api.LeaderLocationListener; import org.opendaylight.controller.cluster.dom.api.LeaderLocationListenerRegistration; @@ -39,17 +39,18 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier; import scala.concurrent.Future; import scala.concurrent.duration.FiniteDuration; +@Deprecated(forRemoval = true) public class CDSShardAccessImplTest extends AbstractActorTest { private static final DOMDataTreeIdentifier TEST_ID = new DOMDataTreeIdentifier(LogicalDatastoreType.CONFIGURATION, TestModel.TEST_PATH); private CDSShardAccessImpl shardAccess; - private ActorContext context; + private ActorUtils context; @Before public void setUp() { - context = mock(ActorContext.class); + context = mock(ActorUtils.class); final DatastoreContext datastoreContext = DatastoreContext.newBuilder().build(); doReturn(Optional.of(getSystem().deadLetters())).when(context).findLocalShard(any()); doReturn(datastoreContext).when(context).getDatastoreContext();