Refine search
/** * Shut down an actor system and wait for termination. * On failure debug output will be logged about the remaining actors in the system. * <p> * * If verifySystemShutdown is true, then an exception will be thrown on failure. */ public void shutdown(ActorSystem actorSystem, Duration duration, Boolean verifySystemShutdown) { boolean vss = verifySystemShutdown != null ? verifySystemShutdown : false; Duration dur = duration != null ? duration : dilated(FiniteDuration.create(5, TimeUnit.SECONDS)).min(FiniteDuration.create(10, TimeUnit.SECONDS)); JavaTestKit.shutdownActorSystem(actorSystem, dur, vss); }
/** * Same as <code>expectTerminated(remaining(), target)</code>, * but correctly treating the timeFactor. * Don't forget to 'watch' it first! */ public Terminated expectTerminated(ActorRef target) { return expectTerminated(Duration.Undefined(), target); }
public void shutdownActorSystem(ActorSystem actorSystem, Duration duration) { shutdownActorSystem(actorSystem, duration, null); } public void shutdownActorSystem(ActorSystem actorSystem, Boolean verifySystemShutdown) {
public void shutdown(ActorSystem actorSystem) { shutdown(actorSystem, null, null); } public void shutdown(ActorSystem actorSystem, Duration duration) {
/** * Shorthand to get the testActor. */ public ActorRef getRef() { return getTestActor(); }
public static void shutdownActorSystem(ActorSystem actorSystem) { shutdownActorSystem(actorSystem, null, null); } public void shutdownActorSystem(ActorSystem actorSystem, Duration duration) {
public void shutdown(ActorSystem actorSystem, Duration duration) { shutdown(actorSystem, duration, null); } public void shutdown(ActorSystem actorSystem, Boolean verifySystemShutdown) {
/** Shorthand to get the testActor. */ public ActorRef getRef() { return getTestActor(); }
/** * Shut down an actor system and wait for termination. On failure debug output will be logged * about the remaining actors in the system. * * <p>If verifySystemShutdown is true, then an exception will be thrown on failure. */ public void shutdown(ActorSystem actorSystem, Duration duration, Boolean verifySystemShutdown) { boolean vss = verifySystemShutdown != null ? verifySystemShutdown : false; Duration dur = duration != null ? duration : dilated(FiniteDuration.create(5, TimeUnit.SECONDS)) .min(FiniteDuration.create(10, TimeUnit.SECONDS)); JavaTestKit.shutdownActorSystem(actorSystem, dur, vss); }
/** * Same as <code>expectTerminated(remainingOrDefault(), target)</code>, but correctly treating the * timeFactor. Don't forget to 'watch' it first! */ public Terminated expectTerminated(ActorRef target) { return expectTerminated(Duration.Undefined(), target); }
public static void shutdownActorSystem(ActorSystem actorSystem, Duration duration) { shutdownActorSystem(actorSystem, duration, null); }
public void shutdown(ActorSystem actorSystem, Boolean verifySystemShutdown) { shutdown(actorSystem, null, verifySystemShutdown); } }
/** Shorthand to get the testActor. */ public ActorRef getRef() { return getTestActor(); }
/** * Shut down an actor system and wait for termination. On failure debug output will be logged * about the remaining actors in the system. * * <p>If verifySystemShutdown is true, then an exception will be thrown on failure. */ public void shutdown(ActorSystem actorSystem, Duration duration, Boolean verifySystemShutdown) { boolean vss = verifySystemShutdown != null ? verifySystemShutdown : false; Duration dur = duration != null ? duration : dilated(FiniteDuration.create(5, TimeUnit.SECONDS)) .min(FiniteDuration.create(10, TimeUnit.SECONDS)); JavaTestKit.shutdownActorSystem(actorSystem, dur, vss); }
/** * Same as <code>expectTerminated(remainingOrDefault(), target)</code>, but correctly treating the * timeFactor. Don't forget to 'watch' it first! */ public Terminated expectTerminated(ActorRef target) { return expectTerminated(Duration.Undefined(), target); }
public static void shutdownActorSystem(ActorSystem actorSystem, Boolean verifySystemShutdown) { shutdownActorSystem(actorSystem, null, verifySystemShutdown); }
public void shutdown(ActorSystem actorSystem, Boolean verifySystemShutdown) { shutdown(actorSystem, null, verifySystemShutdown); }