summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'mock/jrummikub')
-rw-r--r--mock/jrummikub/view/MockConnectPanel.java20
-rw-r--r--mock/jrummikub/view/MockView.java5
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