From 21f866d2ea8aa4514b52b7117de326956d3daad9 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Tue, 24 May 2011 22:33:06 +0200 Subject: 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 --- test/jrummikub/control/RoundControlTest.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 -- cgit v1.2.3