summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-05-24 22:33:06 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-05-24 22:33:06 +0200
commit21f866d2ea8aa4514b52b7117de326956d3daad9 (patch)
tree8b0af2513d155d824248ba5068fc8b7e1e4e6aaa
parent81ca3e174a7d69bd063b80d3512438fd3a89a077 (diff)
downloadJRummikub-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
-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