object TestKit
- Source
- TestKit.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TestKit
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def awaitCond(p: => Boolean, max: Duration, interval: Duration = 100.millis, noThrow: Boolean = false): Boolean
Await until the given condition evaluates to
true
or the timeout expires, whichever comes first. - def now: Duration
Obtain current timestamp as Duration for relative measurements (using System.nanoTime).
- def shutdownActorSystem(actorSystem: ActorSystem, duration: Duration = Duration.Undefined, verifySystemShutdown: Boolean = false): Unit
Shut down an actor system and wait for termination.
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.