Last active
August 29, 2015 14:03
-
-
Save tomer-ben-david/b3d61fed24bf3ea78991 to your computer and use it in GitHub Desktop.
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
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