Skip to content

Instantly share code, notes, and snippets.

@chbatey
Created February 5, 2014 22:51
Show Gist options
  • Save chbatey/8834998 to your computer and use it in GitHub Desktop.
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