TestKit

org.apache.pekko.testkit.TestKit$
See theTestKit companion class
object TestKit

Attributes

Companion
class
Source
TestKit.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TestKit.type

Members list

Value members

Concrete methods

def awaitCond(p: => Boolean, max: Duration, interval: Duration, noThrow: Boolean): Boolean

Await until the given condition evaluates to true or the timeout expires, whichever comes first.

Await until the given condition evaluates to true or the timeout expires, whichever comes first.

Attributes

Source
TestKit.scala
def now: Duration

Obtain current timestamp as Duration for relative measurements (using System.nanoTime).

Obtain current timestamp as Duration for relative measurements (using System.nanoTime).

Attributes

Source
TestKit.scala
def shutdownActorSystem(actorSystem: ActorSystem, duration: Duration, verifySystemShutdown: Boolean): Unit

Shut down an actor system and wait for termination. On failure debug output will be logged about the remaining actors in the system.

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.

Attributes

Source
TestKit.scala