Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
sort by descending number of suspected transaction leaks in trace output
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
AbstractActorTest.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractActorTest.java
b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractActorTest.java
index 2fe7b69cc9b349548f9b44ea36f5d9a9adf1bc2c..7c2255e962e522d94382bfd4b35fe8383061b4fd 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractActorTest.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractActorTest.java
@@
-9,26
+9,27
@@
package org.opendaylight.controller.cluster.datastore;
import akka.actor.ActorSystem;
package org.opendaylight.controller.cluster.datastore;
import akka.actor.ActorSystem;
-import akka.testkit.JavaTestKit;
+import akka.testkit.javadsl.TestKit;
+import java.io.IOException;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.AfterClass;
import org.junit.BeforeClass;
-public abstract class AbstractActorTest {
- private static ActorSystem system;
+public abstract class AbstractActorTest
extends AbstractTest
{
+
private static ActorSystem system;
- @BeforeClass
- public static void setUp(){
- system = ActorSystem.create("test");
- }
+ @BeforeClass
+ public static void setUpClass() throws IOException {
+ System.setProperty("shard.persistent", "false");
+ system = ActorSystem.create("test");
+ }
- @AfterClass
- public static void tearDown(){
- JavaTestKit.shutdownActorSystem(system);
- system = null;
- }
-
- protected ActorSystem getSystem(){
- return system;
- }
+ @AfterClass
+ public static void tearDownClass() throws IOException {
+ TestKit.shutdownActorSystem(system);
+ system = null;
+ }
+ protected static ActorSystem getSystem() {
+ return system;
+ }
}
}