diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-31 18:25:47 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-31 18:25:47 +0200 |
commit | bc04d21afb9534e3f0aed53045ecc3a30a37bf81 (patch) | |
tree | 838c53802638fa06b9ddb9d73a34535abf597da5 /test/jrummikub/control/GameControlTest.java | |
parent | 03b3bf23401c480602162c0e3f45626e5d9f2e0e (diff) | |
download | JRummikub-bc04d21afb9534e3f0aed53045ecc3a30a37bf81.tar JRummikub-bc04d21afb9534e3f0aed53045ecc3a30a37bf81.zip |
View: Refactor bottom panel display
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@354 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub/control/GameControlTest.java')
-rw-r--r-- | test/jrummikub/control/GameControlTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/jrummikub/control/GameControlTest.java b/test/jrummikub/control/GameControlTest.java index 706928c..db60b05 100644 --- a/test/jrummikub/control/GameControlTest.java +++ b/test/jrummikub/control/GameControlTest.java @@ -1,8 +1,7 @@ package jrummikub.control; -import static jrummikub.model.StoneColor.RED; -import static org.junit.Assert.assertSame; -import static org.junit.Assert.assertTrue; +import static jrummikub.model.StoneColor.*; +import static org.junit.Assert.*; import java.awt.Color; @@ -12,6 +11,7 @@ import jrummikub.model.PlayerSettings; import jrummikub.model.Position; import jrummikub.model.Stone; import jrummikub.util.Pair; +import jrummikub.view.IView.BottomPanelType; import jrummikub.view.MockView; import org.junit.Before; @@ -41,7 +41,7 @@ public class GameControlTest { @Test public void testStartFirstRound() { gameControl.startGame(); - assertTrue(view.displayStartTurnPanel); + assertSame(BottomPanelType.START_TURN_PANEL, view.bottomPanelType); } /** */ @@ -75,10 +75,10 @@ public class GameControlTest { view.tablePanel.clickEvent.emit(new Position(0, 0)); view.playerPanel.endTurnEvent.emit(); - assertTrue(view.displayWinPanel); + assertSame(BottomPanelType.WIN_PANEL, view.bottomPanelType); view.newRoundEvent.emit(); - assertTrue(view.displayStartTurnPanel); + assertSame(BottomPanelType.START_TURN_PANEL, view.bottomPanelType); } /** */ @@ -91,7 +91,7 @@ public class GameControlTest { view.playerPanel.endTurnEvent.emit(); view.startTurnEvent.emit(); view.playerPanel.redealEvent.emit(); - assertTrue(view.displayStartTurnPanel); + assertSame(BottomPanelType.START_TURN_PANEL, view.bottomPanelType); view.startTurnEvent.emit(); assertSame(firstPlayer, gameControl.roundControl.roundState .getActivePlayer().getPlayerSettings()); |