X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FAbstractRaftActorIntegrationTest.java;h=ac970c64e479558236fd6e03392d5cd86b074ec6;hp=ef4151d03ed8227fc43afb4c2857c337904a6aec;hb=refs%2Fchanges%2F22%2F65622%2F11;hpb=cc7d70b6fa32b99e1013c3b3c26006d9798d2b95 diff --git a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractRaftActorIntegrationTest.java b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractRaftActorIntegrationTest.java index ef4151d03e..ac970c64e4 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractRaftActorIntegrationTest.java +++ b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractRaftActorIntegrationTest.java @@ -17,8 +17,8 @@ import akka.actor.PoisonPill; import akka.actor.Terminated; import akka.dispatch.Dispatchers; import akka.dispatch.Mailboxes; -import akka.testkit.JavaTestKit; import akka.testkit.TestActorRef; +import akka.testkit.javadsl.TestKit; import akka.util.Timeout; import com.google.common.base.Stopwatch; import com.google.common.collect.ImmutableMap; @@ -275,11 +275,11 @@ public abstract class AbstractRaftActorIntegrationTest extends AbstractActorTest } protected void killActor(final TestActorRef actor) { - JavaTestKit testkit = new JavaTestKit(getSystem()); + TestKit testkit = new TestKit(getSystem()); testkit.watch(actor); actor.tell(PoisonPill.getInstance(), null); - testkit.expectMsgClass(JavaTestKit.duration("5 seconds"), Terminated.class); + testkit.expectMsgClass(testkit.duration("5 seconds"), Terminated.class); testkit.unwatch(actor); }