From d47e291d19dfc2c3a351c0ba94469e3d50637411 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Sun, 19 Jun 2011 00:28:23 +0200 Subject: =?UTF-8?q?Tests=20f=C3=BCr=20NetworkControl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@473 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/control/network/MockConnectionControl.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mock/jrummikub/control/network') diff --git a/mock/jrummikub/control/network/MockConnectionControl.java b/mock/jrummikub/control/network/MockConnectionControl.java index 6ecfe75..7d97c78 100644 --- a/mock/jrummikub/control/network/MockConnectionControl.java +++ b/mock/jrummikub/control/network/MockConnectionControl.java @@ -39,6 +39,8 @@ public class MockConnectionControl implements IConnectionControl { public boolean connected; /** */ public boolean failOnConnect; + /** */ + public GameData joinedGame; @Override public String getNickname() { @@ -112,20 +114,18 @@ public class MockConnectionControl implements IConnectionControl { @Override public GameData getCurrentGame() { - // TODO Auto-generated method stub - return null; + return currentGame; } @Override public void setCurrentGame(GameData game) { - // TODO Auto-generated method stub - + currentGame = game; } @Override public void joinGame(GameData game) { - // TODO Auto-generated method stub - + currentGame = game; + joinedGame = game; } @Override -- cgit v1.2.3