diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-07-05 14:38:35 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-07-05 14:38:35 +0200 |
commit | aa0f3e658bce79311eef57b74bda505ec7db858c (patch) | |
tree | c04f3cb1cf7ad63cce4888ea8b3632c6cb115635 /test/jrummikub/control | |
parent | cabf7868e2f476577c6f4c2c2f001ca556b11bc1 (diff) | |
download | JRummikub-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/jrummikub/control')
-rw-r--r-- | test/jrummikub/control/ApplicationControlTest.java | 11 |
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(); |