diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-24 22:33:06 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-24 22:33:06 +0200 |
commit | 21f866d2ea8aa4514b52b7117de326956d3daad9 (patch) | |
tree | 8b0af2513d155d824248ba5068fc8b7e1e4e6aaa /test/jrummikub | |
parent | 81ca3e174a7d69bd063b80d3512438fd3a89a077 (diff) | |
download | JRummikub-21f866d2ea8aa4514b52b7117de326956d3daad9.tar JRummikub-21f866d2ea8aa4514b52b7117de326956d3daad9.zip |
Regression test for drawing single cards before the initial meld
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@268 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub')
-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 |