X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FAbstractActorTest.java;h=851bec63461bdca9dac96df2727be0b95326ccaa;hp=e23a76b0b223ee2b8ee0d5398da878cd520caf65;hb=4d1709660b7af992d4c382a2a38debb5c7d64fb9;hpb=d83c4c5c20d90e98507e1aae9e6995bd6fab5ed2 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 e23a76b0b2..851bec6346 100644 --- 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 @@ -10,24 +10,15 @@ package org.opendaylight.controller.cluster.datastore; import akka.actor.ActorSystem; import akka.testkit.JavaTestKit; -import org.apache.commons.io.FileUtils; +import java.io.IOException; import org.junit.AfterClass; import org.junit.BeforeClass; -import java.io.File; -import java.io.IOException; - -public abstract class AbstractActorTest { +public abstract class AbstractActorTest extends AbstractTest { private static ActorSystem system; @BeforeClass public static void setUpClass() throws IOException { - File journal = new File("journal"); - - if(journal.exists()) { - FileUtils.deleteDirectory(journal); - } - System.setProperty("shard.persistent", "false"); system = ActorSystem.create("test"); } @@ -36,16 +27,9 @@ public abstract class AbstractActorTest { public static void tearDownClass() throws IOException { JavaTestKit.shutdownActorSystem(system); system = null; - - File journal = new File("journal"); - - if(journal.exists()) { - FileUtils.deleteDirectory(journal); - } } - protected ActorSystem getSystem() { + protected static ActorSystem getSystem() { return system; } - }