diff options
Diffstat (limited to 'test/jrummikub/control')
-rw-r--r-- | test/jrummikub/control/RoundControlTest.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/jrummikub/control/RoundControlTest.java b/test/jrummikub/control/RoundControlTest.java index e4e8b07..369ca7b 100644 --- a/test/jrummikub/control/RoundControlTest.java +++ b/test/jrummikub/control/RoundControlTest.java @@ -154,6 +154,23 @@ public class RoundControlTest { assertEquals(0, roundState.getTable().getSize()); assertEquals(14 + 6, hand.getSize()); } + + @Test + public void laidOutValidUnchanged() { + roundControl.startRound(); + view.startTurnEvent.emit(); + + + IHand hand = roundState.getActivePlayer().getHand(); + + assertFalse(roundState.getActivePlayer().getLaidOut()); + + view.playerPanel.endTurnEvent.emit(); + assertFalse(roundState + .getNthNextPlayer(roundState.getPlayerCount() - 1).getLaidOut()); + assertEquals(0, roundState.getTable().getSize()); + assertEquals(14 + 1, hand.getSize()); + } /** Threshold=30 */ @Test |