Created
July 14, 2014 08:43
-
-
Save tomer-ben-david/57a29acb4b49e87d11fc to your computer and use it in GitHub Desktop.
Scalatest akka actor testkit
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
// 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