Tests für die Control Klasse, jetzt zu 91.9 Prozent abgedeckt

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@601 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Ida Massow 2011-07-02 12:21:10 +02:00
parent 8facde1b30
commit aca4b25210
6 changed files with 322 additions and 32 deletions

View file

@ -77,6 +77,12 @@ public class MockSettingsPanel implements ISettingsPanel {
/** */
public int highestValue;
/** */
public int totalTime;
/** */
public boolean noLimits;
/** */
public boolean seeHandSize;
/** */
public Set<StoneColor> stoneColors;
/** */
public MockEvent backEvent = new MockEvent();
@ -159,6 +165,9 @@ public class MockSettingsPanel implements ISettingsPanel {
stoneSetNumber = gameSettings.getStoneSetNumber();
numberOfStonesDealt = gameSettings.getNumberOfStonesDealt();
highestValue = gameSettings.getHighestValue();
totalTime = gameSettings.getTotalTime();
noLimits = gameSettings.isNoLimits();
seeHandSize = gameSettings.getSeeHandSize();
stoneColors = new HashSet<StoneColor>(gameSettings.getStoneColors());
}

View file

@ -49,6 +49,12 @@ public class MockView implements IView {
public boolean isConnectPanelVisible = false;
/** */
public boolean pauseModeEnabled = false;
/** */
public boolean isPaused = false;
/** */
public boolean savingEnabled = false;
/** */
public boolean loadingError = false;
/** */
public Collection<Stone> selectedStones;
@ -290,14 +296,12 @@ public class MockView implements IView {
@Override
public void showLoadingError() {
// TODO Auto-generated method stub
loadingError = true;
}
@Override
public void enableSave(boolean enable) {
// TODO Auto-generated method stub
savingEnabled = enable;
}
@Override