commit | 1c8493c97bbb6f36140ba2dcb648e61e236e9f86 | [log] [tgz] |
---|---|---|
author | HIGUCHI Yuta <y-higuchi@ak.jp.nec.com> | Tue Dec 08 16:16:55 2015 -0800 |
committer | HIGUCHI Yuta <y-higuchi@ak.jp.nec.com> | Tue Dec 08 16:17:34 2015 -0800 |
tree | 027a1145ba690324d39e46fd3ffbdff669a6b76c | |
parent | 68274987f33d69cf2462e24769a12e64f7d014cd [diff] |
bug fix: type mismatch in mock Database Change-Id: I529a76207e048f2a53ff66f17cd7a6b7bfa22797
diff --git a/core/store/dist/src/test/java/org/onosproject/store/consistent/impl/DefaultAsyncConsistentMapTest.java b/core/store/dist/src/test/java/org/onosproject/store/consistent/impl/DefaultAsyncConsistentMapTest.java index 3f6402c..5fc8113 100644 --- a/core/store/dist/src/test/java/org/onosproject/store/consistent/impl/DefaultAsyncConsistentMapTest.java +++ b/core/store/dist/src/test/java/org/onosproject/store/consistent/impl/DefaultAsyncConsistentMapTest.java
@@ -41,6 +41,8 @@ import com.google.common.base.MoreObjects; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Maps; + import net.kuujo.copycat.Task; import net.kuujo.copycat.cluster.Cluster; import net.kuujo.copycat.resource.ResourceState; @@ -185,7 +187,8 @@ @Override public CompletableFuture<Boolean> mapContainsValue(String mapName, byte[] value) { - return CompletableFuture.completedFuture(map.containsValue(value)); + return CompletableFuture.completedFuture(Maps.transformValues(map, Versioned::value) + .containsValue(value)); } @Override