Skip to content

Instantly share code, notes, and snippets.

@phaller
Created September 2, 2012 21:50
Show Gist options
  • Save phaller/3604839 to your computer and use it in GitHub Desktop.
Save phaller/3604839 to your computer and use it in GitHub Desktop.
Fast Track to Akka (Sep 3-4): Training Materials
Slides:
https://www.dropbox.com/s/2j50hcqb8rk8x0i/fast-track-to-akka-preparations.pdf
https://www.dropbox.com/s/04beouos9bbhw2z/fast-track-to-akka.pdf
https://www.dropbox.com/s/fv8gtqs3p8h1dr6/fast-track-to-akka-part2.pdf
Solutions:
https://www.dropbox.com/s/ocxx0rf0wt07asa/training-akka-solutions.zip
Futures and Promises in Scala 2.10 (a recent talk):
https://speakerdeck.com/u/heathermiller/p/futures-and-promises-in-scala-2-dot-10
Akka Cluster Specification:
http://doc.akka.io/docs/akka/snapshot/cluster/cluster.html
Course feedback:
Please take a couple of minutes to fill out our survey:
https://www.surveymonkey.com/s/20120903-ftta-typesafe-phaller
Template for testing:
package akka.training
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 {
"A ComputeActor" should {
"respond with the length of a string" in {
val ref = system.actorOf(Props[ComputeActor])
ref ! "Hello world"
expectMsg(11)
done // necessary because Specs2 wants a matcher
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment