diff options
Diffstat (limited to 'test/jrummikub/control')
-rw-r--r-- | test/jrummikub/control/GameControlTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/jrummikub/control/GameControlTest.java b/test/jrummikub/control/GameControlTest.java index be8c8d8..1a9ba3b 100644 --- a/test/jrummikub/control/GameControlTest.java +++ b/test/jrummikub/control/GameControlTest.java @@ -49,8 +49,7 @@ public class GameControlTest { public void testEndOfRound() { gameControl.startGame(); // Manipulate first players hand, to allow player1 to win - IHand playerHand = gameControl.roundControl.roundState - .getActivePlayer().getHand(); + IHand playerHand = gameControl.roundControl.clonedHand; for (Pair<Stone, Position> entry : playerHand.clone()) { playerHand.pickUp(entry.getFirst()); } @@ -73,8 +72,8 @@ public class GameControlTest { view.handPanel.stoneClickEvent.emit(stone3, true); view.tablePanel.clickEvent.emit(new Position(0, 0)); - view.playerPanel.endTurnEvent.emit(); + assertSame(BottomPanelType.WIN_PANEL, view.bottomPanelType); view.newRoundEvent.emit(); |