summaryrefslogtreecommitdiffstats
path: root/test/jrummikub
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-05-29 18:50:49 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-05-29 18:50:49 +0200
commit9e21e3f23c68a077f95f3cf47bf70cf1e8df3542 (patch)
treef91f1eee57ba33b186a0b5085d6342f6f97ffc4b /test/jrummikub
parent3f3f6370c92a22af54fc2ad633101b74fdd34c67 (diff)
downloadJRummikub-9e21e3f23c68a077f95f3cf47bf70cf1e8df3542.tar
JRummikub-9e21e3f23c68a077f95f3cf47bf70cf1e8df3542.zip
Test for joker number in settings control
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@301 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub')
-rw-r--r--test/jrummikub/control/SettingsControlTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/jrummikub/control/SettingsControlTest.java b/test/jrummikub/control/SettingsControlTest.java
index 40a9265..fef6b28 100644
--- a/test/jrummikub/control/SettingsControlTest.java
+++ b/test/jrummikub/control/SettingsControlTest.java
@@ -184,5 +184,15 @@ public class SettingsControlTest {
view.settingsPanel.startGameEvent.emit();
assertEquals(25, gameSettings.getInitialMeldThreshold());
}
+
+ /** */
+ @Test
+ public void jokerNumberTest() {
+ assertEquals(initialSettings.getJokerNumber(), view.settingsPanel.jokerNumber);
+
+ view.settingsPanel.changeJokerNumberEvent.emit(25);
+ view.settingsPanel.startGameEvent.emit();
+ assertEquals(25, gameSettings.getJokerNumber());
+ }
}