From aa0f3e658bce79311eef57b74bda505ec7db858c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 5 Jul 2011 14:38:35 +0200 Subject: MockApplicationControlTest: added quitWarningTest git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@607 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/control/ApplicationControlTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/jrummikub') 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 @@ -47,6 +47,17 @@ public class ApplicationControlTest { assertTrue(view.pauseModeEnabled); } + /** */ + @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() { -- cgit v1.2.3