diff options
-rw-r--r-- | mock/jrummikub/view/MockView.java | 4 | ||||
-rw-r--r-- | 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<File> loadFileEvent = new MockEvent1<File>(); + /** */ + 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); } /** */ |