Skip to content

Instantly share code, notes, and snippets.

@tomer-ben-david
Created July 14, 2014 08:43
Show Gist options
  • Save tomer-ben-david/57a29acb4b49e87d11fc to your computer and use it in GitHub Desktop.
Save tomer-ben-david/57a29acb4b49e87d11fc to your computer and use it in GitHub Desktop.
Scalatest akka actor testkit
// Your scalatest shoudl extend
extends TestKit(ActorSystem("test"))
// Then create actor as following
val mockedActorRef: ActorRef = TestActorRef(new ModelsRepositoryFetcherActor(MyCaseClassParam("a")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment