Created
October 17, 2012 22:17
-
-
Save phaller/3908692 to your computer and use it in GitHub Desktop.
Scala and Akka Training Oct 16-19
This file contains hidden or 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
Futures and Promises in Scala 2.10: | |
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 | |
NEW! Typesafe Console Announcement: | |
http://blog.typesafe.com/typesafe-console-becomes-part-of-the-stack-87576 | |
Course Feedback: | |
https://www.surveymonkey.com/s/20121016-scala-akka-typesafe-phaller | |
"org.scalatest" % "scalatest_2.10.0-M7" % "1.9-2.10.0-M7-B1" | |
Testing Template: | |
================= | |
import akka.testkit.{ TestKit, ImplicitSender } | |
import akka.actor.{ ActorSystem, Props } | |
import org.scalatest._ | |
import org.scalatest.junit.JUnitRunner | |
import org.scalatest.matchers.ShouldMatchers | |
@org.junit.runner.RunWith(classOf[JUnitRunner]) | |
class ActorSpec extends TestKit(ActorSystem()) with ImplicitSender with WordSpec | |
with ShouldMatchers { | |
"A ComputeActor" should { | |
"respond with the length of a string" in { | |
//val ref = system.actorOf(Props[ComputeActor]) | |
//ref ! "Hello world" | |
//expectMsg(11) | |
1 should be(1) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment