From 9e21e3f23c68a077f95f3cf47bf70cf1e8df3542 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Sun, 29 May 2011 18:50:49 +0200 Subject: Test for joker number in settings control git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@301 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/control/SettingsControlTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/jrummikub') 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()); + } } -- cgit v1.2.3