Skip to content

Instantly share code, notes, and snippets.

Created December 12, 2012 07:34
Show Gist options
  • Save anonymous/4265819 to your computer and use it in GitHub Desktop.
Save anonymous/4265819 to your computer and use it in GitHub Desktop.
Fast Track to Akka, Dec 12-13, 2012
Fast Track to Akka - Course Materials
=====================================
Template for Testing with specs2:
---------------------------------
import akka.testkit.{ TestKit, ImplicitSender }
import akka.actor.{ ActorSystem, Props }
import org.specs2.mutable.Specification
import org.specs2.time.{ NoTimeConversions => NTC }
import org.specs2.runner.JUnitRunner
@org.junit.runner.RunWith(classOf[JUnitRunner])
class ActorSpec extends TestKit(ActorSystem())
with ImplicitSender with Specification with NTC {
"An actor" should {
"respond correctly to messages" in {
todo
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment