summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/jrummikub/control/RoundControlTest.java17
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