Created
September 1, 2011 18:10
-
-
Save RayRoestenburg/1186825 to your computer and use it in GitHub Desktop.
Test example using ReplyAfterProcessing
This file contains 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
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