Created
August 14, 2012 11:38
-
-
Save phaller/3348532 to your computer and use it in GitHub Desktop.
Fast Track to Akka Training Materials
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
https://www.dropbox.com/s/uijb0smnki4sr7d/fast-track-to-akka-preparations.pdf | |
https://www.dropbox.com/s/99cuu37bnn5b3ip/fast-track-to-akka.pdf | |
https://www.dropbox.com/s/r9fl791ncp940n0/fast-track-to-akka-part2.pdf | |
SOLUTIONS: | |
My "official" solutions: | |
https://www.dropbox.com/s/tg3ki7itseydl93/training-akka-solutions.zip | |
The solutions I produced during the course (including all the extras): | |
https://www.dropbox.com/s/ywk5a134bhqroxf/solutions-course-version.zip | |
COURSE FEEDBACK: | |
I would appreciate it if you could take a couple of minutes to fill out the following feedback form: | |
https://www.surveymonkey.com/s/NXV5YPN | |
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