Package akka.actor.testkit.typed.javadsl
Class TestKitJunitResource
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- akka.actor.testkit.typed.javadsl.TestKitJunitResource
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public final class TestKitJunitResource extends org.junit.rules.ExternalResource
Use a custom config for the actor system.
-
-
Constructor Summary
Constructors Constructor Description TestKitJunitResource()
TestKitJunitResource(ActorTestKit _kit)
TestKitJunitResource(com.typesafe.config.Config customConfig)
Use a custom config for the actor system.TestKitJunitResource(com.typesafe.config.Config customConfig, TestKitSettings settings)
Use a custom config for the actor system, and a customTestKitSettings
.TestKitJunitResource(java.lang.String customConfig)
Use a custom config for the actor system.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
after()
<M> TestProbe<M>
createTestProbe()
See corresponding method onActorTestKit
<M> TestProbe<M>
createTestProbe(java.lang.Class<M> clazz)
See corresponding method onActorTestKit
<M> TestProbe<M>
createTestProbe(java.lang.String name)
See corresponding method onActorTestKit
<M> TestProbe<M>
createTestProbe(java.lang.String name, java.lang.Class<M> clazz)
See corresponding method onActorTestKit
Scheduler
scheduler()
See corresponding method onActorTestKit
<T> ActorRef<T>
spawn(Behavior<T> behavior)
See corresponding method onActorTestKit
<T> ActorRef<T>
spawn(Behavior<T> behavior, Props props)
See corresponding method onActorTestKit
<T> ActorRef<T>
spawn(Behavior<T> behavior, java.lang.String name)
See corresponding method onActorTestKit
<T> ActorRef<T>
spawn(Behavior<T> behavior, java.lang.String name, Props props)
See corresponding method onActorTestKit
ActorSystem<java.lang.Void>
system()
See corresponding method onActorTestKit
ActorTestKit
testKit()
TestKitSettings
testKitSettings()
See corresponding method onActorTestKit
Timeout
timeout()
See corresponding method onActorTestKit
-
-
-
Constructor Detail
-
TestKitJunitResource
public TestKitJunitResource(ActorTestKit _kit)
-
TestKitJunitResource
public TestKitJunitResource()
-
TestKitJunitResource
public TestKitJunitResource(java.lang.String customConfig)
Use a custom config for the actor system.- Parameters:
customConfig
- (undocumented)
-
TestKitJunitResource
public TestKitJunitResource(com.typesafe.config.Config customConfig)
Use a custom config for the actor system.- Parameters:
customConfig
- (undocumented)
-
TestKitJunitResource
public TestKitJunitResource(com.typesafe.config.Config customConfig, TestKitSettings settings)
Use a custom config for the actor system, and a customTestKitSettings
.- Parameters:
customConfig
- (undocumented)settings
- (undocumented)
-
-
Method Detail
-
after
public void after()
- Overrides:
after
in classorg.junit.rules.ExternalResource
-
createTestProbe
public <M> TestProbe<M> createTestProbe()
See corresponding method onActorTestKit
- Returns:
- (undocumented)
-
createTestProbe
public <M> TestProbe<M> createTestProbe(java.lang.Class<M> clazz)
See corresponding method onActorTestKit
- Parameters:
clazz
- (undocumented)- Returns:
- (undocumented)
-
createTestProbe
public <M> TestProbe<M> createTestProbe(java.lang.String name, java.lang.Class<M> clazz)
See corresponding method onActorTestKit
- Parameters:
name
- (undocumented)clazz
- (undocumented)- Returns:
- (undocumented)
-
createTestProbe
public <M> TestProbe<M> createTestProbe(java.lang.String name)
See corresponding method onActorTestKit
- Parameters:
name
- (undocumented)- Returns:
- (undocumented)
-
scheduler
public Scheduler scheduler()
See corresponding method onActorTestKit
- Returns:
- (undocumented)
-
spawn
public <T> ActorRef<T> spawn(Behavior<T> behavior)
See corresponding method onActorTestKit
- Parameters:
behavior
- (undocumented)- Returns:
- (undocumented)
-
spawn
public <T> ActorRef<T> spawn(Behavior<T> behavior, java.lang.String name)
See corresponding method onActorTestKit
- Parameters:
behavior
- (undocumented)name
- (undocumented)- Returns:
- (undocumented)
-
spawn
public <T> ActorRef<T> spawn(Behavior<T> behavior, Props props)
See corresponding method onActorTestKit
- Parameters:
behavior
- (undocumented)props
- (undocumented)- Returns:
- (undocumented)
-
spawn
public <T> ActorRef<T> spawn(Behavior<T> behavior, java.lang.String name, Props props)
See corresponding method onActorTestKit
- Parameters:
behavior
- (undocumented)name
- (undocumented)props
- (undocumented)- Returns:
- (undocumented)
-
system
public ActorSystem<java.lang.Void> system()
See corresponding method onActorTestKit
- Returns:
- (undocumented)
-
testKit
public ActorTestKit testKit()
-
testKitSettings
public TestKitSettings testKitSettings()
See corresponding method onActorTestKit
- Returns:
- (undocumented)
-
timeout
public Timeout timeout()
See corresponding method onActorTestKit
- Returns:
- (undocumented)
-
-