akka.patterns.ask everywhere

This commit is contained in:
Nikolay Botev 2011-12-31 17:42:13 -08:00
parent a342bb93ea
commit ce1d2f4721
53 changed files with 78 additions and 27 deletions

View file

@ -55,6 +55,7 @@ import akka.actor.UntypedActor;
import akka.actor.ActorRef;
import akka.actor.Props;
import akka.dispatch.Futures;
import akka.Patterns;
import static org.junit.Assert.*;
@ -78,7 +79,7 @@ public class FutureDocTestBase {
String msg = "hello";
//#ask-blocking
Timeout timeout = system.settings().ActorTimeout();
Future<Object> future = Futures.ask(actor, msg, timeout);
Future<Object> future = Patterns.ask(actor, msg, timeout);
String result = (String) Await.result(future, timeout.duration());
//#ask-blocking
assertEquals("HELLO", result);