object ActorTestKit
- Source
- ActorTestKit.scala
- Alphabetic
- By Inheritance
- ActorTestKit
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply(name: String, customConfig: Config, settings: TestKitSettings): ActorTestKit
Create a named testkit, and use a custom config for the actor system, and a custom akka.actor.testkit.typed.TestKitSettings
Create a named testkit, and use a custom config for the actor system, and a custom akka.actor.testkit.typed.TestKitSettings
It will create an akka.actor.typed.ActorSystem with this name, e.g. threads will include the name. When the test has completed you should terminate the
ActorSystem
and the testkit with ActorTestKit#shutdownTestKit. -
def
apply(name: String, customConfig: Config): ActorTestKit
Create a named testkit, and use a custom config for the actor system.
Create a named testkit, and use a custom config for the actor system.
It will create an akka.actor.typed.ActorSystem with this name, e.g. threads will include the name. When the test has completed you should terminate the
ActorSystem
and the testkit with ActorTestKit#shutdownTestKit. -
def
apply(name: String): ActorTestKit
Create a named testkit.
Create a named testkit.
It will create an akka.actor.typed.ActorSystem with this name, e.g. threads will include the name. When the test has completed you should terminate the
ActorSystem
and the testkit with ActorTestKit#shutdownTestKit. -
def
apply(): ActorTestKit
Create a testkit named from the class that is calling this method.
Create a testkit named from the class that is calling this method.
It will create an akka.actor.typed.ActorSystem with this name, e.g. threads will include the name. When the test has completed you should terminate the
ActorSystem
and the testkit with ActorTestKit#shutdownTestKit. -
def
shutdown(system: typed.ActorSystem[_], timeout: Duration, throwIfShutdownFails: Boolean = false): Unit
Shutdown the given akka.actor.typed.ActorSystem and block until it shuts down or the
duration
hits.Shutdown the given akka.actor.typed.ActorSystem and block until it shuts down or the
duration
hits. If the timeout hitsverifySystemShutdown
decides -
def
shutdown(system: typed.ActorSystem[_]): Unit
Shutdown the given akka.actor.typed.ActorSystem and block until it shuts down, if more time than
TestKitSettings.DefaultActorSystemShutdownTimeout
passes an exception is thrown