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%2Fdatastore%2FShardManagerTest.java;h=a2f19d8b2b6b2477a2a71749d6c48b766c459afe;hp=fa436c16053bc42ad9835e7ecbccd1cb202fc4b8;hb=af255d4824ce1290d6e6b4c669a5d9b0c5960f34;hpb=321d959d82bf14a6826e5bf42419c1a1460a1cbc diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardManagerTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardManagerTest.java index fa436c1605..a2f19d8b2b 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardManagerTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardManagerTest.java @@ -10,6 +10,8 @@ import org.junit.Test; import org.opendaylight.controller.cluster.datastore.messages.FindPrimary; import org.opendaylight.controller.cluster.datastore.messages.PrimaryFound; import org.opendaylight.controller.cluster.datastore.messages.PrimaryNotFound; +import org.opendaylight.controller.cluster.datastore.utils.MockClusterWrapper; +import org.opendaylight.controller.cluster.datastore.utils.MockConfiguration; import scala.concurrent.duration.Duration; public class ShardManagerTest { @@ -30,7 +32,7 @@ public class ShardManagerTest { public void testOnReceiveFindPrimaryForNonExistentShard() throws Exception { new JavaTestKit(system) {{ - final Props props = ShardManager.props("config"); + final Props props = ShardManager.props("config", new MockClusterWrapper(), new MockConfiguration()); final TestActorRef subject = TestActorRef.create(system, props); new Within(duration("1 seconds")) { @@ -51,7 +53,7 @@ public class ShardManagerTest { public void testOnReceiveFindPrimaryForExistentShard() throws Exception { new JavaTestKit(system) {{ - final Props props = ShardManager.props("config"); + final Props props = ShardManager.props("config", new MockClusterWrapper(), new MockConfiguration()); final TestActorRef subject = TestActorRef.create(system, props); // the run() method needs to finish within 3 seconds @@ -67,4 +69,4 @@ public class ShardManagerTest { }; }}; } -} \ No newline at end of file +}