Trait/Object

akka.actor.testkit.typed.scaladsl

ActorTestKit

Related Docs: object ActorTestKit | package scaladsl

Permalink

trait ActorTestKit extends AnyRef

Testkit for asynchronous testing of typed actors, meant for mixing into the test class.

Provides a typed actor system started on creation, used for all test cases and shut down when shutdown is called.

The actor system has a custom guardian that allows for spawning arbitrary actors using the spawn methods.

Designed to work with any test framework, but framework glue code that calls shutdown after all tests has run needs to be provided by the user.

For synchronous testing of a Behavior see BehaviorTestKit

Annotations
@ApiMayChange()
Source
ActorTestKit.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ActorTestKit
  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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorTestKit to any2stringadd[ActorTestKit] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ActorTestKit, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorTestKit to ArrowAssoc[ActorTestKit] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def config: Config

    Permalink

    Configuration the actor system is created with, override to customize, or pass to constructor if using ActorTestKit rather than ActorTestKit

  9. def ensuring(cond: (ActorTestKit) ⇒ Boolean, msg: ⇒ Any): ActorTestKit

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorTestKit to Ensuring[ActorTestKit] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (ActorTestKit) ⇒ Boolean): ActorTestKit

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorTestKit to Ensuring[ActorTestKit] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): ActorTestKit

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorTestKit to Ensuring[ActorTestKit] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): ActorTestKit

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorTestKit to Ensuring[ActorTestKit] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorTestKit to StringFormat[ActorTestKit] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def name: String

    Permalink

    Actor system name based on the test it is mixed into, override to customize, or pass to constructor if using ActorTestKit rather than ActorTestKit

    Actor system name based on the test it is mixed into, override to customize, or pass to constructor if using ActorTestKit rather than ActorTestKit

    Attributes
    protected
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. implicit def scheduler: Scheduler

    Permalink
  25. final def shutdownTestKit(): Unit

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

    Permalink

    Spawn the given behavior.

    Spawn the given behavior. This is created as a child of the test kit guardian

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

    Permalink

    Spawn the given behavior.

    Spawn the given behavior. This is created as a child of the test kit guardian

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

    Permalink

    Spawn the given behavior.

    Spawn the given behavior. This is created as a child of the test kit guardian

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

    Permalink

    Spawn the given behavior.

    Spawn the given behavior. This is created as a child of the test kit guardian

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. implicit final def system: typed.ActorSystem[Nothing]

    Permalink
  32. implicit def testkitSettings: TestKitSettings

    Permalink

    TestKit settings used in the tests, override or provide custom config to customize

    TestKit settings used in the tests, override or provide custom config to customize

    Attributes
    protected
  33. implicit val timeout: Timeout

    Permalink
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def [B](y: B): (ActorTestKit, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ActorTestKit to ArrowAssoc[ActorTestKit] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ActorTestKit to any2stringadd[ActorTestKit]

Inherited by implicit conversion StringFormat from ActorTestKit to StringFormat[ActorTestKit]

Inherited by implicit conversion Ensuring from ActorTestKit to Ensuring[ActorTestKit]

Inherited by implicit conversion ArrowAssoc from ActorTestKit to ArrowAssoc[ActorTestKit]

Ungrouped