Package akka.testkit
Class TestKit$
- java.lang.Object
-
- akka.testkit.TestKit$
-
public class TestKit$ extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TestKit$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitCond(scala.Function0<java.lang.Object> p, scala.concurrent.duration.Duration max, scala.concurrent.duration.Duration interval, boolean noThrow)
Await until the given condition evaluates totrue
or the timeout expires, whichever comes first.scala.concurrent.duration.Duration
awaitCond$default$3()
boolean
awaitCond$default$4()
scala.concurrent.duration.Duration
now()
Obtain current timestamp as Duration for relative measurements (using System.nanoTime).void
shutdownActorSystem(ActorSystem actorSystem, scala.concurrent.duration.Duration duration, boolean verifySystemShutdown)
Shut down an actor system and wait for termination.scala.concurrent.duration.Duration
shutdownActorSystem$default$2()
boolean
shutdownActorSystem$default$3()
-
-
-
Field Detail
-
MODULE$
public static final TestKit$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
awaitCond
public boolean awaitCond(scala.Function0<java.lang.Object> p, scala.concurrent.duration.Duration max, scala.concurrent.duration.Duration interval, boolean noThrow)
Await until the given condition evaluates totrue
or the timeout expires, whichever comes first.
-
awaitCond$default$3
public scala.concurrent.duration.Duration awaitCond$default$3()
-
awaitCond$default$4
public boolean awaitCond$default$4()
-
now
public scala.concurrent.duration.Duration now()
Obtain current timestamp as Duration for relative measurements (using System.nanoTime).
-
shutdownActorSystem
public void shutdownActorSystem(ActorSystem actorSystem, scala.concurrent.duration.Duration duration, boolean verifySystemShutdown)
Shut down an actor system and wait for termination. On failure debug output will be logged about the remaining actors in the system.The
duration
is dilated by the timefactor.If verifySystemShutdown is true, then an exception will be thrown on failure.
-
shutdownActorSystem$default$2
public scala.concurrent.duration.Duration shutdownActorSystem$default$2()
-
shutdownActorSystem$default$3
public boolean shutdownActorSystem$default$3()
-
-