score:29

Accepted answer

You could use Props like this:

val actorRef = TestActorRef(Props(new MyActor(param1, param2)))

Or factory method like this:

val actorRef = TestActorRef(new MyActor(param1, param2))

See apply methods in object TestActorRef.


Related Query

More Query from same tag