import akka.actor.ActorSystem;
import akka.testkit.javadsl.TestKit;
import com.typesafe.config.ConfigFactory;
-import java.io.IOException;
import org.junit.AfterClass;
import org.junit.BeforeClass;
private static ActorSystem system;
@BeforeClass
- public static void setUpClass() throws IOException {
+ public static void setUpClass() {
System.setProperty("shard.persistent", "false");
system = ActorSystem.create("test", ConfigFactory.load().getConfig("test-config"));
}
@AfterClass
- public static void tearDownClass() throws IOException {
- TestKit.shutdownActorSystem(system, Boolean.TRUE);
+ public static void tearDownClass() {
+ TestKit.shutdownActorSystem(system, true);
system = null;
}