Re: [akka-user] Java : How should Futures be handled when Unit testing?

2015-04-09 Thread Adam Daines
not complete during the time defined in timeoutDuration, then it will throw A TimeoutException. -Endre On Thu, Apr 9, 2015 at 1:27 PM, Adam Daines daine...@gmail.com javascript: wrote: Hi all, I've got a question in relation to the unit testing of a piece of non actor code that produces

[akka-user] Java : How should Futures be handled when Unit testing?

2015-04-09 Thread Adam Daines
Hi all, I've got a question in relation to the unit testing of a piece of non actor code that produces a FutureActorRef via performing an actorSelection().resolveOne on the ActorSystem. Within the Future.onFailure() a value is being set that I would like to test but the Future is making use

Re: [akka-user] Java : How should Futures be handled when Unit testing?

2015-04-09 Thread Adam Daines
would be much appreciated. Thanks. On Thursday, April 9, 2015 at 1:46:22 PM UTC+1, Adam Daines wrote: Thank you both for the quick and helpful responses! Our issue is now resolved :) Thanks. On Thursday, April 9, 2015 at 1:01:24 PM UTC+1, √ wrote: Ouch, nice catch, now we've covered