diff options
Diffstat (limited to 'test/jrummikub/control')
-rw-r--r-- | test/jrummikub/control/SettingsControlTest.java | 10 |
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()); + } } |