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;
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");