tomer-ben-david
7/14/2014 - 8:43 AM

Scalatest akka actor testkit

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")))