diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-20 03:24:11 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-20 03:24:11 +0200 |
commit | e79295f271062f2186c2ce0f9b69f1ddfc964abf (patch) | |
tree | e4664a9230b60d088be5fd0edc6a2ef50d6e0b4e | |
parent | 8a3e4c3e26cba022dfaf06f8c7cd31b33b0889e9 (diff) | |
download | JRummikub-e79295f271062f2186c2ce0f9b69f1ddfc964abf.tar JRummikub-e79295f271062f2186c2ce0f9b69f1ddfc964abf.zip |
Tests wieder heile dank MockConnectPanel
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@502 72836036-5685-4462-b002-a69064685172
-rw-r--r-- | mock/jrummikub/view/MockConnectPanel.java | 20 | ||||
-rw-r--r-- | mock/jrummikub/view/MockView.java | 5 |
2 files changed, 23 insertions, 2 deletions
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 |