import akka.actor.ActorSystem;
import akka.testkit.JavaTestKit;
+
import org.junit.AfterClass;
import org.junit.BeforeClass;
+import java.io.IOException;
+
public abstract class AbstractActorTest {
private static ActorSystem system;
@BeforeClass
- public static void setUpClass() {
+ public static void setUpClass() throws IOException {
+
System.setProperty("shard.persistent", "false");
system = ActorSystem.create("test");
}
@AfterClass
- public static void tearDownClass() {
+ public static void tearDownClass() throws IOException {
JavaTestKit.shutdownActorSystem(system);
system = null;
}
protected ActorSystem getSystem() {
return system;
}
-
}