ScalaDays 2013 presentation, detailing my experiences creating an enterprise web application with the Play Framework, Akka, Scala, and various forms of JavaScript including AngularJS
17. class ImportActorSpec extends TestKit(ActorSystem(“testsystem”))
with WordSpec with MustMatchers {
// DI in-memory repo actors
“An XML Import Actor” must {
“Import all messages from file” in {
// prep
importActor ! ImportActorProtocol.ImportXml(xml, testActor)
expectMsg(ValidationReady)
importActor ! GetStatus(testActor)
expectMsgPF() {
case …
}
}
}
}