Packages

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
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ActorTestKitBase
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ActorTestKitBase(config: Config, settings: TestKitSettings)

    Use a custom config for the actor system, and a custom akka.actor.testkit.typed.TestKitSettings.

  2. new ActorTestKitBase(config: Config)

    Use a custom config for the actor system.

  3. new ActorTestKitBase(config: String)

    Use a custom config for the actor system.

  4. new ActorTestKitBase()
  5. new ActorTestKitBase(testKit: ActorTestKit)

Concrete Value Members

  1. def createTestProbe[M](name: String): TestProbe[M]

    See corresponding method on ActorTestKit

  2. def createTestProbe[M](): TestProbe[M]

    See corresponding method on ActorTestKit

  3. implicit def scheduler: Scheduler

    See corresponding method on ActorTestKit

  4. def spawn[T](behavior: Behavior[T], name: String, props: typed.Props): typed.ActorRef[T]

    See corresponding method on ActorTestKit

  5. def spawn[T](behavior: Behavior[T], props: typed.Props): typed.ActorRef[T]

    See corresponding method on ActorTestKit

  6. def spawn[T](behavior: Behavior[T], name: String): typed.ActorRef[T]

    See corresponding method on ActorTestKit

  7. def spawn[T](behavior: Behavior[T]): typed.ActorRef[T]

    See corresponding method on ActorTestKit

  8. implicit def system: typed.ActorSystem[Nothing]

    See corresponding method on ActorTestKit

  9. val testKit: ActorTestKit
  10. implicit def testKitSettings: TestKitSettings

    See corresponding method on ActorTestKit

  11. implicit def timeout: Timeout

    See corresponding method on ActorTestKit