Refactor MessageCollectorActor and DoNothingActor
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / utils / PrimaryShardInfoFutureCacheTest.java
index 9d34ce5a08985fef69151e6405db9dc0afba62e3..e9d780aff2fb3d0238c6f493b0b213e75583fa39 100644 (file)
@@ -13,6 +13,7 @@ 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;
@@ -30,7 +31,8 @@ public class PrimaryShardInfoFutureCacheTest {
 
         assertEquals("getIfPresent", null, cache.getIfPresent("foo"));
 
-        PrimaryShardInfo shardInfo = new PrimaryShardInfo(mock(ActorSelection.class), Optional.<DataTree>absent());
+        PrimaryShardInfo shardInfo = new PrimaryShardInfo(mock(ActorSelection.class), DataStoreVersions.CURRENT_VERSION,
+                Optional.<DataTree>absent());
         cache.putSuccessful("foo", shardInfo);
 
         Future<PrimaryShardInfo> future = cache.getIfPresent("foo");