Skip to content

Instantly share code, notes, and snippets.

@RayRoestenburg
Created September 1, 2011 18:10
Show Gist options
  • Save RayRoestenburg/1186825 to your computer and use it in GitHub Desktop.
Save RayRoestenburg/1186825 to your computer and use it in GitHub Desktop.
Test example using ReplyAfterProcessing
class SomeSpec extends WordSpec {
"A oneway actor" should {
"Tell me when it's finished "in {
val testActor = Actor.actorOf(new SomeActor() with ReplyAfterProcessing)
var reply = testActor !! (message, 1000)
if(reply.isEmpty) fail("some message")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment