Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Simplify code using Java 8 features
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
AbstractTest.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractTest.java
b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractTest.java
index 790c5c7ea05fab0c18586e72857e3466123c630c..e57ae8fcedf4fd449c2027dd5740d1b022b51523 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractTest.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractTest.java
@@
-8,7
+8,7
@@
package org.opendaylight.controller.cluster.datastore;
import akka.actor.ActorSystem;
package org.opendaylight.controller.cluster.datastore;
import akka.actor.ActorSystem;
-import akka.testkit.
Java
TestKit;
+import akka.testkit.
javadsl.
TestKit;
import com.typesafe.config.ConfigFactory;
import java.util.ArrayList;
import java.util.Collection;
import com.typesafe.config.ConfigFactory;
import java.util.ArrayList;
import java.util.Collection;
@@
-61,11
+61,11
@@
public abstract class AbstractTest {
@After
public void actorSystemCleanup() {
for (final ActorSystem system : actorSystems) {
@After
public void actorSystemCleanup() {
for (final ActorSystem system : actorSystems) {
-
JavaTestKit.shutdownActorSystem(system, null
, Boolean.TRUE);
+
TestKit.shutdownActorSystem(system
, Boolean.TRUE);
}
}
}
}
- protected ActorSystem newActorSystem(
String name,
String config) {
+ protected ActorSystem newActorSystem(
final String name, final
String config) {
ActorSystem system = ActorSystem.create(name, ConfigFactory.load().getConfig(config));
actorSystems.add(system);
return system;
ActorSystem system = ActorSystem.create(name, ConfigFactory.load().getConfig(config));
actorSystems.add(system);
return system;