Class ActorTestKitBase

java.lang.Object
org.apache.pekko.actor.testkit.typed.scaladsl.ActorTestKitBase
Direct Known Subclasses:
ScalaTestWithActorTestKit

public abstract class ActorTestKitBase extends Object
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 afterAll().

  • Constructor Details

    • ActorTestKitBase

      public ActorTestKitBase(ActorTestKit testKit)
    • ActorTestKitBase

      public ActorTestKitBase()
    • ActorTestKitBase

      public ActorTestKitBase(String config)
      Use a custom config for the actor system.
    • ActorTestKitBase

      public ActorTestKitBase(com.typesafe.config.Config config)
      Use a custom config for the actor system.
    • ActorTestKitBase

      public ActorTestKitBase(com.typesafe.config.Config config, TestKitSettings settings)
      Use a custom config for the actor system, and a custom pekko.actor.testkit.typed.TestKitSettings.
  • Method Details