Skip to content

Instantly share code, notes, and snippets.

@phaller
Forked from anonymous/gist:4265819
Created December 13, 2012 09:12
Show Gist options
  • Save phaller/4275159 to your computer and use it in GitHub Desktop.
Save phaller/4275159 to your computer and use it in GitHub Desktop.
Akka Cluster Specification:
http://doc.akka.io/docs/akka/snapshot/cluster/cluster.html
Talk on Correctly and Efficiently Combining Concurrency Abstractions (Video coming soon!):
http://skillsmatter.com/podcast/scala/correctly-and-efficiently-combining-concurrency-abstractions
How to combine actors, futures, threads, blocking APIs, shared-memory data structures etc. safely and efficiently.
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