diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-19 00:28:23 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-19 00:28:23 +0200 |
commit | d47e291d19dfc2c3a351c0ba94469e3d50637411 (patch) | |
tree | b54027e861277fdc8205a6b7dc4c44f63dfb3242 /mock/jrummikub/control | |
parent | 80f0c0d43faab53ec30333529d748bdd725a72df (diff) | |
download | JRummikub-d47e291d19dfc2c3a351c0ba94469e3d50637411.tar JRummikub-d47e291d19dfc2c3a351c0ba94469e3d50637411.zip |
Tests für NetworkControl
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@473 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub/control')
-rw-r--r-- | mock/jrummikub/control/network/MockConnectionControl.java | 12 |
1 files changed, 6 insertions, 6 deletions
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 |