akka.testkit
Class TestKit$
java.lang.Object
akka.testkit.TestKit$
public class TestKit$
- extends java.lang.Object
Field Summary |
static TestKit$ |
MODULE$
Static reference to the singleton instance of this Scala object. |
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). |
java.util.concurrent.atomic.AtomicInteger |
testActorId()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODULE$
public static final TestKit$ MODULE$
- Static reference to the singleton instance of this Scala object.
TestKit$
public TestKit$()
testActorId
public java.util.concurrent.atomic.AtomicInteger testActorId()
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 to
true
or the timeout
expires, whichever comes first.
now
public scala.concurrent.duration.Duration now()
- Obtain current timestamp as Duration for relative measurements (using System.nanoTime).
dilated
public 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'.