From ce6cc738adb3c923b3e993adf5c338327df6ecf2 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Mon, 4 Jul 2011 17:42:37 +0200 Subject: Finished control tests git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@603 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockView.java | 4 +++- test/jrummikub/control/ApplicationControlTest.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index dd8f5a7..a78aefe 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -88,6 +88,8 @@ public class MockView implements IView { public MockEvent acknowledgeConnectionLostEvent = new MockEvent(); /** */ public MockEvent1 loadFileEvent = new MockEvent1(); + /** */ + public boolean loadCalled = false; @Override public MockTablePanel getTablePanel() { @@ -314,7 +316,7 @@ public class MockView implements IView { @Override public void load() { - // TODO Auto-generated method stub + loadCalled = true; } @Override diff --git a/test/jrummikub/control/ApplicationControlTest.java b/test/jrummikub/control/ApplicationControlTest.java index b239e64..84b8527 100644 --- a/test/jrummikub/control/ApplicationControlTest.java +++ b/test/jrummikub/control/ApplicationControlTest.java @@ -113,7 +113,8 @@ public class ApplicationControlTest { assertTrue(view.isQuitWarningPanelVisible); assertSame(QuitMode.QUIT_GAME, view.getQuitWarningPanel().getQuitMode()); view.getQuitWarningPanel().quitEvent.emit(); - // TODO asserte was + assertFalse(view.isQuitWarningPanelVisible); + assertTrue(view.loadCalled); } /** */ -- cgit v1.2.3