Shortcut for creating a new named test probe for the testkit actor system
Shortcut for creating a new named test probe for the testkit actor system
the type of messages the probe should accept
Shortcut for creating a new named test probe for the testkit actor system
Shortcut for creating a new named test probe for the testkit actor system
the type of messages the probe should accept
Shortcut for creating a new test probe for the testkit actor system
Shortcut for creating a new test probe for the testkit actor system
the type of messages the probe should accept
Shortcut for creating a new test probe for the testkit actor system
Shortcut for creating a new test probe for the testkit actor system
the type of messages the probe should accept
The scheduler of the testkit actor system
Terminate the actor system and the testkit
Spawn a new named actor under the testkit user guardian with the given props and return the ActorRef for the spawned actor, note that spawning actors with the same name in multiple test cases will cause failures.
Spawn a new auto-named actor under the testkit user guardian with the given props and return the ActorRef for the spawned actor
Spawn a new named actor under the testkit user guardian and return the ActorRef for the spawned actor, note that spawning actors with the same name in multiple test cases will cause failures.
Spawn a new auto-named actor under the testkit user guardian and return the ActorRef for the spawned actor
The actor system running for this testkit.
The actor system running for this testkit. Interaction with the user guardian is done through methods on the testkit
which is why it is typed to Void
.
The default timeout as specified with the config/akka.actor.testkit.typed.TestKitSettings
Java API: Test kit for asynchronous testing of typed actors. Provides a typed actor system started on creation, that can be used for multiple test cases and is 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
shutdownTestKit
after all tests has run needs to be provided by the user.Use
TestKit.create
factories to construct manually or TestKitJunitResource to use together with JUnit testsFor synchronous testing of a
Behavior
see BehaviorTestKit