summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub/view
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-07-02 12:21:10 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-07-02 12:21:10 +0200
commitaca4b2521072561e3dfb3ce0e5034f5c5d76c8b3 (patch)
treedecb7fcd36bc363b4ebb56522ca4fdb7e784029a /mock/jrummikub/view
parent8facde1b30e8bd478409a6752eaeceebe6ba3e98 (diff)
downloadJRummikub-aca4b2521072561e3dfb3ce0e5034f5c5d76c8b3.tar
JRummikub-aca4b2521072561e3dfb3ce0e5034f5c5d76c8b3.zip
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
Diffstat (limited to 'mock/jrummikub/view')
-rw-r--r--mock/jrummikub/view/MockSettingsPanel.java9
-rw-r--r--mock/jrummikub/view/MockView.java12
2 files changed, 17 insertions, 4 deletions
diff --git a/mock/jrummikub/view/MockSettingsPanel.java b/mock/jrummikub/view/MockSettingsPanel.java
index 7bed40f..0e7dbf8 100644
--- a/mock/jrummikub/view/MockSettingsPanel.java
+++ b/mock/jrummikub/view/MockSettingsPanel.java
@@ -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());
}
diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java
index 8dc261b..e664c67 100644
--- a/mock/jrummikub/view/MockView.java
+++ b/mock/jrummikub/view/MockView.java
@@ -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