abstract class ActorTestKitBase extends AnyRef
A base class for the ActorTestKit, making it possible to have testing framework (e.g. ScalaTest) manage the lifecycle of the testkit.
An implementation for ScalaTest is ScalaTestWithActorTestKit.
Another abstract class that is testing framework specific should extend this class and
automatically shut down the testKit
when the test completes or fails by implementing ActorTestKitBase#afterAll.
- Source
- ActorTestKitBase.scala
- Alphabetic
- By Inheritance
- ActorTestKitBase
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ActorTestKitBase(config: Config, settings: TestKitSettings)
Use a custom config for the actor system, and a custom akka.actor.testkit.typed.TestKitSettings.
-
new
ActorTestKitBase(config: Config)
Use a custom config for the actor system.
-
new
ActorTestKitBase(config: String)
Use a custom config for the actor system.
- new ActorTestKitBase()
- new ActorTestKitBase(testKit: ActorTestKit)
Concrete Value Members
-
def
createTestProbe[M](name: String): TestProbe[M]
See corresponding method on ActorTestKit
-
def
createTestProbe[M](): TestProbe[M]
See corresponding method on ActorTestKit
-
implicit
def
scheduler: Scheduler
See corresponding method on ActorTestKit
-
def
spawn[T](behavior: Behavior[T], name: String, props: typed.Props): typed.ActorRef[T]
See corresponding method on ActorTestKit
-
def
spawn[T](behavior: Behavior[T], props: typed.Props): typed.ActorRef[T]
See corresponding method on ActorTestKit
-
def
spawn[T](behavior: Behavior[T], name: String): typed.ActorRef[T]
See corresponding method on ActorTestKit
-
def
spawn[T](behavior: Behavior[T]): typed.ActorRef[T]
See corresponding method on ActorTestKit
-
implicit
def
system: typed.ActorSystem[Nothing]
See corresponding method on ActorTestKit
- val testKit: ActorTestKit
-
implicit
def
testKitSettings: TestKitSettings
See corresponding method on ActorTestKit
-
implicit
def
timeout: Timeout
See corresponding method on ActorTestKit