From e79295f271062f2186c2ce0f9b69f1ddfc964abf Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Mon, 20 Jun 2011 03:24:11 +0200 Subject: Tests wieder heile dank MockConnectPanel git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@502 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockConnectPanel.java | 20 ++++++++++++++++++++ mock/jrummikub/view/MockView.java | 5 +++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 mock/jrummikub/view/MockConnectPanel.java (limited to 'mock') diff --git a/mock/jrummikub/view/MockConnectPanel.java b/mock/jrummikub/view/MockConnectPanel.java new file mode 100644 index 0000000..a08593d --- /dev/null +++ b/mock/jrummikub/view/MockConnectPanel.java @@ -0,0 +1,20 @@ +package jrummikub.view; + +import jrummikub.util.IEvent; +import jrummikub.util.MockEvent; + +public class MockConnectPanel implements IConnectPanel{ + public MockEvent cancelEvent = new MockEvent(); + + @Override + public void setMode(LoginError error) { + // TODO Auto-generated method stub + + } + + @Override + public IEvent getCancelEvent() { + return cancelEvent; + } + +} diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index 5440fc8..8920959 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -32,6 +32,8 @@ public class MockView implements IView { /** */ public MockQuitWarningPanel quitWarningPanel = new MockQuitWarningPanel(); /** */ + public MockConnectPanel connectPanel = new MockConnectPanel(); + /** */ public boolean isSettingsPanelVisible = false; /** */ public boolean isScorePanelVisible = false; @@ -226,8 +228,7 @@ public class MockView implements IView { @Override public IConnectPanel getConnectPanel() { - // TODO Auto-generated method stub - return null; + return connectPanel; } @Override -- cgit v1.2.3