diff options
Diffstat (limited to 'test/jrummikub/control/network')
-rw-r--r-- | test/jrummikub/control/network/NetworkRoundControlTest.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/jrummikub/control/network/NetworkRoundControlTest.java b/test/jrummikub/control/network/NetworkRoundControlTest.java index 82f4dc7..24360c6 100644 --- a/test/jrummikub/control/network/NetworkRoundControlTest.java +++ b/test/jrummikub/control/network/NetworkRoundControlTest.java @@ -103,7 +103,8 @@ public class NetworkRoundControlTest { connectionControl.turnStartEvent.emit(testRoundState); assertFalse(connectionControl.turnEnded); - connectionControl.turnEndEvent.emit(testRoundState.getTable()); + connectionControl.turnEndEvent.emit(testRoundState.getActivePlayer() + .getHand(), testRoundState.getTable(), testRoundState.getTable()); assertSame(testRoundState.getNthPlayer(3), testRoundState.getActivePlayer()); assertFalse(connectionControl.turnStarted); @@ -111,7 +112,8 @@ public class NetworkRoundControlTest { connectionControl.turnStartEvent.emit(testRoundState); assertFalse(connectionControl.turnEnded); - connectionControl.turnEndEvent.emit(testRoundState.getTable()); + connectionControl.turnEndEvent.emit(testRoundState.getActivePlayer() + .getHand(), testRoundState.getTable(), testRoundState.getTable()); assertSame(testRoundState.getNthPlayer(0), testRoundState.getActivePlayer()); assertFalse(connectionControl.turnStarted); @@ -144,7 +146,8 @@ public class NetworkRoundControlTest { connectionControl.turnStartEvent.emit(testRoundState); assertFalse(connectionControl.turnEnded); - connectionControl.turnEndEvent.emit(testRoundState.getTable()); + connectionControl.turnEndEvent.emit(testRoundState.getActivePlayer() + .getHand(), testRoundState.getTable(), testRoundState.getTable()); assertSame(testRoundState.getNthPlayer(1), testRoundState.getActivePlayer()); assertFalse(connectionControl.turnStarted); @@ -152,7 +155,8 @@ public class NetworkRoundControlTest { connectionControl.turnStartEvent.emit(testRoundState); assertFalse(connectionControl.turnEnded); - connectionControl.turnEndEvent.emit(testRoundState.getTable()); + connectionControl.turnEndEvent.emit(testRoundState.getActivePlayer() + .getHand(), testRoundState.getTable(), testRoundState.getTable()); assertSame(testRoundState.getNthPlayer(2), testRoundState.getActivePlayer()); assertFalse(connectionControl.turnStarted); |