Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Migrate from JavaTestKit to javadsl.TestKit
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
AbstractRaftActorIntegrationTest.java
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 ef4151d03ed8227fc43afb4c2857c337904a6aec..ac970c64e479558236fd6e03392d5cd86b074ec6 100644
(file)
--- 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.actor.Terminated;
import akka.dispatch.Dispatchers;
import akka.dispatch.Mailboxes;
-import akka.testkit.JavaTestKit;
import akka.testkit.TestActorRef;
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;
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<TestRaftActor> actor) {
}
protected void killActor(final TestActorRef<TestRaftActor> actor) {
-
JavaTestKit testkit = new Java
TestKit(getSystem());
+
TestKit testkit = new
TestKit(getSystem());
testkit.watch(actor);
actor.tell(PoisonPill.getInstance(), null);
testkit.watch(actor);
actor.tell(PoisonPill.getInstance(), null);
- testkit.expectMsgClass(
JavaTestK
it.duration("5 seconds"), Terminated.class);
+ testkit.expectMsgClass(
testk
it.duration("5 seconds"), Terminated.class);
testkit.unwatch(actor);
}
testkit.unwatch(actor);
}