akka.testkit
Class TestKit$

java.lang.Object
  extended by 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.
 
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

MODULE$

public static final TestKit$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

TestKit$

public TestKit$()
Method Detail

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.

Parameters:
p - (undocumented)
max - (undocumented)
interval - (undocumented)
noThrow - (undocumented)
Returns:
(undocumented)

now

public scala.concurrent.duration.Duration now()
Obtain current timestamp as Duration for relative measurements (using System.nanoTime).

Returns:
(undocumented)

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'.

Parameters:
duration - (undocumented)
system - (undocumented)
Returns:
(undocumented)

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.

If verifySystemShutdown is true, then an exception will be thrown on failure.

Parameters:
actorSystem - (undocumented)
duration - (undocumented)
verifySystemShutdown - (undocumented)