First stab, do we want to go for throws Throwable or even just switch to RuntimeExceptions?
This commit is contained in:
parent
6af612153e
commit
e88f2bd936
11 changed files with 45 additions and 38 deletions
|
|
@ -20,7 +20,7 @@ import static java.util.concurrent.TimeUnit.SECONDS;
|
|||
public class TransactorDocTest {
|
||||
|
||||
@Test
|
||||
public void coordinatedExample() {
|
||||
public void coordinatedExample() throws Exception {
|
||||
//#coordinated-example
|
||||
ActorSystem system = ActorSystem.create("CoordinatedExample");
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ public class TransactorDocTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void counterTransactor() {
|
||||
public void counterTransactor() throws Exception {
|
||||
ActorSystem system = ActorSystem.create("CounterTransactor");
|
||||
ActorRef counter = system.actorOf(new Props(Counter.class));
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ public class TransactorDocTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void friendlyCounterTransactor() {
|
||||
public void friendlyCounterTransactor() throws Exception {
|
||||
ActorSystem system = ActorSystem.create("FriendlyCounterTransactor");
|
||||
ActorRef friend = system.actorOf(new Props(Counter.class));
|
||||
ActorRef friendlyCounter = system.actorOf(new Props(FriendlyCounter.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue