test exception reception on TestActorRef.apply()

This commit is contained in:
Roland 2011-04-21 21:59:12 +02:00
parent c86b63cff8
commit df9be27718

View file

@ -235,6 +235,7 @@ class TestActorRefSpec extends WordSpec with MustMatchers with BeforeAndAfterEac
val ref = TestActorRef[WorkerActor].start()
ref.isDefinedAt("work") must be (true)
ref.isDefinedAt("sleep") must be (false)
intercept[IllegalActorStateException] { ref("work") }
val ch = Future.channel()
ref ! ch
val f = ch.future