|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.testkit.TestKit$
public class TestKit$
Field Summary | |
---|---|
static TestKit$ |
MODULE$
Static reference to the singleton instance of this Scala object. |
Constructor Summary | |
---|---|
TestKit$()
|
Method Summary | |
---|---|
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 |
dilated(scala.concurrent.duration.Duration duration,
ActorSystem system)
Java API: Scale timeouts (durations) during tests with the configured 'akka.test.timefactor'. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TestKit$ MODULE$
Constructor Detail |
---|
public TestKit$()
Method Detail |
---|
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.
public scala.concurrent.duration.Duration now()
public scala.concurrent.duration.Duration dilated(scala.concurrent.duration.Duration duration, ActorSystem system)
public void shutdownActorSystem(ActorSystem actorSystem, scala.concurrent.duration.Duration duration, boolean verifySystemShutdown)
If verifySystemShutdown is true, then an exception will be thrown on failure.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |