Package

akka.actor.testkit.typed

scaladsl

Permalink

package scaladsl

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. scaladsl
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait ActorTestKit extends AnyRef

    Permalink

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

    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()
  2. trait BehaviorTestKit[T] extends AnyRef

    Permalink

    Used for synchronous testing akka.actor.typed.Behaviors.

    Used for synchronous testing akka.actor.typed.Behaviors. Stores all effects e.g. Spawning of children, watching and offers access to what effects have taken place.

    For asynchronous testing of Behaviors running see ActorTestKit

    Not for user extension. See BehaviorTestKit.apply factory methods

    Annotations
    @DoNotInherit()
  3. final class ManualTime extends AnyRef

    Permalink

    Not for user instantiation, see ManualTime#apply

  4. implicit final class TestDuration extends AnyVal

    Permalink

    Scala API.

    Scala API. Scale timeouts (durations) during tests with the configured 'akka.test.timefactor'. Implicit class providing dilated method.

    import scala.concurrent.duration._
    import akka.actor.testkit.typed.scaladsl._
    10.milliseconds.dilated

    Uses the scaling factor from the TestTimeFactor in the TestKitSettings (in implicit scope).

  5. trait TestInbox[T] extends AnyRef

    Permalink

    Utility for use as an ActorRef when *synchronously* testing akka.actor.typed.Behavior with akka.actor.testkit.typed.javadsl.BehaviorTestKit.

    Utility for use as an ActorRef when *synchronously* testing akka.actor.typed.Behavior with akka.actor.testkit.typed.javadsl.BehaviorTestKit.

    If you plan to use a real akka.actor.typed.ActorSystem then use akka.actor.testkit.typed.javadsl.TestProbe for asynchronous testing.

    Use factory apply in companion to create instances

    Not for user extension

    Annotations
    @DoNotInherit()
  6. trait TestProbe[M] extends AnyRef

    Permalink

    Create instances through the factories in the TestProbe companion.

    Create instances through the factories in the TestProbe companion.

    A test probe is essentially a queryable mailbox which can be used in place of an actor and the received messages can then be asserted

    Not for user extension

    Annotations
    @DoNotInherit()

Value Members

  1. object ActorTestKit

    Permalink
  2. object BehaviorTestKit

    Permalink
  3. object Effects

    Permalink

    Factories for behavior effects for BehaviorTestKit, each effect has a suitable equals and can be used to compare actual effects to expected ones.

  4. object FishingOutcomes

    Permalink
  5. object ManualTime

    Permalink

    Manual time allows you to do async tests while controlling the scheduler of the system.

    Manual time allows you to do async tests while controlling the scheduler of the system.

    To use it you need to configure the ActorSystem/ActorTestKit with ManualTime.config and access the scheduler control through ManualTime.apply()

  6. object TestInbox

    Permalink
    Annotations
    @ApiMayChange()
  7. object TestProbe

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped