diff options
Diffstat (limited to 'test')
-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(); |