Skip to content

Instantly share code, notes, and snippets.

@Angelfirenze
Forked from chbatey/ParentActorTest.scala
Created February 5, 2014 22:52
Show Gist options
  • Save Angelfirenze/8835009 to your computer and use it in GitHub Desktop.
Save Angelfirenze/8835009 to your computer and use it in GitHub Desktop.
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