Tests für NetworkControl
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@473 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
80f0c0d43f
commit
d47e291d19
6 changed files with 26 additions and 23 deletions
|
@ -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
|
||||
|
|
Reference in a new issue