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%2Fdatastore%2Futils%2FPrimaryShardInfoFutureCacheTest.java;h=6913c1ae61ecddebd7c07a3bc77050e4dbab5a0c;hb=5464f50be733df1bbbe31cf05665d542d3b7c5e7;hp=e9d780aff2fb3d0238c6f493b0b213e75583fa39;hpb=9302c5052c431ae2add87d4e14a68570ef7604ec;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/PrimaryShardInfoFutureCacheTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/PrimaryShardInfoFutureCacheTest.java index e9d780aff2..6913c1ae61 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/PrimaryShardInfoFutureCacheTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/PrimaryShardInfoFutureCacheTest.java @@ -10,12 +10,11 @@ package org.opendaylight.controller.cluster.datastore.utils; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.mockito.Mockito.mock; + import akka.actor.ActorSelection; -import com.google.common.base.Optional; import org.junit.Test; import org.opendaylight.controller.cluster.datastore.DataStoreVersions; import org.opendaylight.controller.cluster.datastore.messages.PrimaryShardInfo; -import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree; import scala.concurrent.Future; /** @@ -31,8 +30,8 @@ public class PrimaryShardInfoFutureCacheTest { assertEquals("getIfPresent", null, cache.getIfPresent("foo")); - PrimaryShardInfo shardInfo = new PrimaryShardInfo(mock(ActorSelection.class), DataStoreVersions.CURRENT_VERSION, - Optional.absent()); + PrimaryShardInfo shardInfo = new PrimaryShardInfo(mock(ActorSelection.class), + DataStoreVersions.CURRENT_VERSION); cache.putSuccessful("foo", shardInfo); Future future = cache.getIfPresent("foo");