summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-07-04 17:26:45 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-07-04 17:26:45 +0200
commita3fc740af582bd188b8a0e22645fb28ee19fd9d5 (patch)
treec68ae531eecbdaf19889da32dfbf8a05a2b06c74 /test
parentaca4b2521072561e3dfb3ce0e5034f5c5d76c8b3 (diff)
downloadJRummikub-a3fc740af582bd188b8a0e22645fb28ee19fd9d5.tar
JRummikub-a3fc740af582bd188b8a0e22645fb28ee19fd9d5.zip
ApplicationControlTest: fixed pauseTest()
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@602 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test')
-rw-r--r--test/jrummikub/control/ApplicationControlTest.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/jrummikub/control/ApplicationControlTest.java b/test/jrummikub/control/ApplicationControlTest.java
index 88f365a..b239e64 100644
--- a/test/jrummikub/control/ApplicationControlTest.java
+++ b/test/jrummikub/control/ApplicationControlTest.java
@@ -1,10 +1,9 @@
package jrummikub.control;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
import jrummikub.util.LoginData;
import jrummikub.view.IQuitWarningPanel.QuitMode;
+import jrummikub.view.IView.BottomPanelType;
import jrummikub.view.MockView;
import org.junit.Before;
@@ -41,8 +40,11 @@ public class ApplicationControlTest {
testAppControl = new ApplicationControl(view);
testAppControl.startApplication();
view.settingsPanel.startGameEvent.emit();
- view.getPlayerPanel().pauseEvent.emit();
- // assertTrue(view.isPaused);
+ assertSame(BottomPanelType.START_TURN_PANEL, view.bottomPanelType);
+ view.startTurnEvent.emit();
+ assertSame(BottomPanelType.HUMAN_HAND_PANEL, view.bottomPanelType);
+ view.pauseEvent.emit();
+ assertTrue(view.pauseModeEnabled);
}
/** */