Wait on shutdown of extra actor systems in tests. See #3217

This commit is contained in:
Björn Antonsson 2013-05-02 17:12:36 +02:00
parent 3bc661bed6
commit e00ab533bb
84 changed files with 762 additions and 845 deletions

View file

@ -3,8 +3,8 @@
*/
package docs.remoting;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import akka.testkit.AkkaJUnitActorSystemResource;
import org.junit.ClassRule;
import org.junit.Test;
import com.typesafe.config.ConfigFactory;
@ -28,18 +28,12 @@ public class RemoteDeploymentDocTestBase {
getSender().tell(getSelf(), getSelf());
}
}
static ActorSystem system;
@BeforeClass
public static void init() {
system = ActorSystem.create();
}
@AfterClass
public static void cleanup() {
system.shutdown();
}
@ClassRule
public static AkkaJUnitActorSystemResource actorSystemResource =
new AkkaJUnitActorSystemResource("RemoteDeploymentDocTest");
private final ActorSystem system = actorSystemResource.getSystem();
@Test
public void demonstrateDeployment() {