Fixing AkkaException once and for all

This commit is contained in:
Viktor Klang 2012-05-21 20:21:12 +02:00
parent 9057abb9a8
commit 64cda1f3e7
2 changed files with 3 additions and 3 deletions

View file

@ -408,9 +408,9 @@ abstract class ActorModelSpec(config: String) extends AkkaSpec(config) with Defa
assert(Await.result(f1, timeout.duration) === "foo")
assert(Await.result(f2, timeout.duration) === "bar")
assert(Await.result(f4, timeout.duration) === "foo2")
assert(intercept[ActorInterruptedException](Await.result(f3, timeout.duration)).getMessage === "Ping!")
assert(intercept[ActorInterruptedException](Await.result(f3, timeout.duration)).getCause.getMessage === "Ping!")
assert(Await.result(f6, timeout.duration) === "bar2")
assert(intercept[ActorInterruptedException](Await.result(f5, timeout.duration)).getMessage === "Ping!")
assert(intercept[ActorInterruptedException](Await.result(f5, timeout.duration)).getCause.getMessage === "Ping!")
}
}

View file

@ -18,7 +18,7 @@ class AkkaException(message: String, cause: Throwable) extends RuntimeException(
lazy val uuid: String = java.util.UUID.randomUUID().toString
override def getMessage(): String = "[" + uuid + "] " + super.getMessage
override def toString(): String = uuid + super.toString()
}
/**