From f1ecdcbe59cfaaad647cb5a6c50ceb39c9496c8d Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Mon, 4 Jul 2011 22:26:29 +0200 Subject: More network tests git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@604 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/control/network/MockConnectionControl.java | 5 +++-- mock/jrummikub/view/MockConnectPanel.java | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'mock') diff --git a/mock/jrummikub/control/network/MockConnectionControl.java b/mock/jrummikub/control/network/MockConnectionControl.java index 33aa4aa..c01ebf2 100644 --- a/mock/jrummikub/control/network/MockConnectionControl.java +++ b/mock/jrummikub/control/network/MockConnectionControl.java @@ -75,6 +75,8 @@ public class MockConnectionControl implements IConnectionControl { public boolean nextPlayer; /** */ public boolean startRoundCalled; + /** */ + public boolean redealCalled; @Override public String getNickname() { @@ -269,7 +271,6 @@ public class MockConnectionControl implements IConnectionControl { @Override public void redeal() { - // TODO Auto-generated method stub - + redealCalled = true; } } diff --git a/mock/jrummikub/view/MockConnectPanel.java b/mock/jrummikub/view/MockConnectPanel.java index 952839c..d06c915 100644 --- a/mock/jrummikub/view/MockConnectPanel.java +++ b/mock/jrummikub/view/MockConnectPanel.java @@ -7,11 +7,12 @@ import jrummikub.util.MockEvent; public class MockConnectPanel implements IConnectPanel { /** */ public MockEvent cancelEvent = new MockEvent(); + /** */ + public LoginError errorMode; @Override public void setMode(LoginError error) { - // TODO Auto-generated method stub - + errorMode = error; } @Override -- cgit v1.2.3