Package org.apache.pekko.testkit
Class TestActors
- java.lang.Object
-
- org.apache.pekko.testkit.TestActors
-
public class TestActors extends java.lang.Object
A collection of common actor patterns used in tests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestActors.BlackholeActor
BlackholeActor does nothing for incoming messages, its like a blackhole.static class
TestActors.EchoActor
EchoActor sends back received messages (unmodified).static class
TestActors.ForwardActor
ForwardActor forwards all messages as-is to specified ActorRef.
-
Constructor Summary
Constructors Constructor Description TestActors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Props
blackholeProps()
static Props
echoActorProps()
static Props
forwardActorProps(ActorRef ref)
-