summaryrefslogtreecommitdiffstats
path: root/test/jrummikub
diff options
context:
space:
mode:
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());
+ }
}