Removing Specs2 as a dependency to remove the hassle of keeping track of available versions

This commit is contained in:
Viktor Klang 2012-07-21 18:09:20 +02:00
parent f7e3c78a7b
commit 743f9cd8ff
5 changed files with 4 additions and 89 deletions

View file

@ -206,14 +206,13 @@ public class UntypedActorDocTestBase {
ActorSystem system = ActorSystem.create("MySystem");
ActorRef actorRef = system.actorOf(new Props(MyUntypedActor.class));
//#gracefulStop
//FIXME URGENT Await.result should have a @throws clause
//try {
try {
Future<Boolean> stopped = gracefulStop(actorRef, Duration.create(5, TimeUnit.SECONDS), system);
Await.result(stopped, Duration.create(6, TimeUnit.SECONDS));
// the actor has been stopped
//} catch (AskTimeoutException e) {
} catch (AskTimeoutException e) {
// the actor wasn't stopped within 5 seconds
//}
}
//#gracefulStop
system.shutdown();
}