summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-07-05 14:38:35 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-07-05 14:38:35 +0200
commitaa0f3e658bce79311eef57b74bda505ec7db858c (patch)
treec04f3cb1cf7ad63cce4888ea8b3632c6cb115635 /test
parentcabf7868e2f476577c6f4c2c2f001ca556b11bc1 (diff)
downloadJRummikub-aa0f3e658bce79311eef57b74bda505ec7db858c.tar
JRummikub-aa0f3e658bce79311eef57b74bda505ec7db858c.zip
MockApplicationControlTest: added quitWarningTest
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@607 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test')
-rw-r--r--test/jrummikub/control/ApplicationControlTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/jrummikub/control/ApplicationControlTest.java b/test/jrummikub/control/ApplicationControlTest.java
index 84b8527..c052650 100644
--- a/test/jrummikub/control/ApplicationControlTest.java
+++ b/test/jrummikub/control/ApplicationControlTest.java
@@ -49,6 +49,17 @@ public class ApplicationControlTest {
/** */
@Test
+ public void quitWarningTest() {
+ testAppControl = new ApplicationControl(view);
+ testAppControl.startApplication();
+ view.settingsPanel.startGameEvent.emit();
+ view.quitEvent.emit();
+ assertSame(QuitMode.QUIT_PROCESS, view.quitWarningPanel.quitMode);
+ assertTrue(view.isQuitWarningPanelVisible);
+ }
+
+ /** */
+ @Test
public void networkTest() {
testAppControl = new ApplicationControl(view);
testAppControl.startApplication();