Skip to content

Instantly share code, notes, and snippets.

@chbatey
Created February 5, 2014 22:51
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save chbatey/8834998 to your computer and use it in GitHub Desktop.
Akka: Using actor factory ref in real code
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