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%2FShardManagerTest.java;h=a2f19d8b2b6b2477a2a71749d6c48b766c459afe;hb=d255fdd0b14660a22ff63771d954ac3fe5d0cb7e;hp=fa436c16053bc42ad9835e7ecbccd1cb202fc4b8;hpb=e22159a0e53bf93a94908e2c3988ceeba9ed8183;p=controller.git 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 +}