Hi,
Thanks for your answer. Consider the following method:
def process(request: Request): Future[Result] = {
request.param match {
case Some(param) => methodWhichReturnsFuture(param)
case None => throw new Exception()
}
}
No if I test the method I would use:
Await.result(process(request), 60.seconds) must throwA[Exception]
But now I can't distinguish which exception was thrown.
Is there an other method to check if the exception in the future was
thrown?
Thanks,
Christian
Am Samstag, den 26.04.2014, 13:45 -0300 schrieb Paulo "JCranky"
Siqueira: