public class TestKit$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TestKit$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
TestKit$() |
Modifier and Type | Method and 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 to
true or the timeout
expires, whichever comes first. |
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.
|
java.util.concurrent.atomic.AtomicInteger |
testActorId() |
public static final TestKit$ MODULE$
public java.util.concurrent.atomic.AtomicInteger testActorId()
public boolean awaitCond(scala.Function0<java.lang.Object> p, scala.concurrent.duration.Duration max, scala.concurrent.duration.Duration interval, boolean noThrow)
true
or the timeout
expires, whichever comes first.p
- (undocumented)max
- (undocumented)interval
- (undocumented)noThrow
- (undocumented)public scala.concurrent.duration.Duration now()
public void shutdownActorSystem(ActorSystem actorSystem, scala.concurrent.duration.Duration duration, boolean verifySystemShutdown)
If verifySystemShutdown is true, then an exception will be thrown on failure.
actorSystem
- (undocumented)duration
- (undocumented)verifySystemShutdown
- (undocumented)