First stab, do we want to go for throws Throwable or even just switch to RuntimeExceptions?

This commit is contained in:
Viktor Klang 2012-02-16 12:31:49 +01:00
parent 6af612153e
commit e88f2bd936
11 changed files with 45 additions and 38 deletions

View file

@ -150,7 +150,7 @@ public class FaultHandlingTestBase {
}
@Test
public void mustEmploySupervisorStrategy() {
public void mustEmploySupervisorStrategy() throws Exception {
// code here
//#testkit
EventFilter ex1 = (EventFilter) new ErrorFilter(ArithmeticException.class);

View file

@ -130,7 +130,7 @@ public class UntypedActorDocTestBase {
}
@Test
public void usingAsk() {
public void usingAsk() throws Exception {
ActorSystem system = ActorSystem.create("MySystem");
ActorRef myActor = system.actorOf(new Props(new UntypedActorFactory() {
public UntypedActor create() {
@ -188,7 +188,7 @@ public class UntypedActorDocTestBase {
}
@Test
public void useWatch() {
public void useWatch() throws Exception {
ActorSystem system = ActorSystem.create("MySystem");
ActorRef myActor = system.actorOf(new Props(WatchActor.class));
Future<Object> future = Patterns.ask(myActor, "kill", 1000);
@ -197,7 +197,7 @@ public class UntypedActorDocTestBase {
}
@Test
public void usePatternsGracefulStop() {
public void usePatternsGracefulStop() throws Exception {
ActorSystem system = ActorSystem.create("MySystem");
ActorRef actorRef = system.actorOf(new Props(MyUntypedActor.class));
//#gracefulStop