Skip to content

Instantly share code, notes, and snippets.

@tomer-ben-david
Last active August 29, 2015 14:03
Show Gist options
  • Save tomer-ben-david/b3d61fed24bf3ea78991 to your computer and use it in GitHub Desktop.
Save tomer-ben-david/b3d61fed24bf3ea78991 to your computer and use it in GitHub Desktop.
import org.scalatest._
import akka.testkit._
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import akka.actor.ActorSystem
@RunWith(classOf[JUnitRunner])
class MyActor$Test extends FlatSpec with TestKitBase with ShouldMatchers {
implicit lazy val system = ActorSystem()
"MyActor" should "Receive a message to update stats" in {
val actorRef = TestActorRef[MyActor]
actorRef ! SomeMessageAsCaseClass()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment