Created
February 5, 2014 22:51
-
-
Save chbatey/8834998 to your computer and use it in GitHub Desktop.
Akka: Using actor factory ref in real code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test("Using a real child actor") { | |
val underTest = TestActorRef(new ParentActor(actorFactory => actorFactory.actorOf(Props[ChildActor]))) | |
underTest ! "Go do some work" | |
// Can't test this but shows how to crate a ParentActor in production code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment