summaryrefslogtreecommitdiffstats
path: root/test/jrummikub/control/SaveControlTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/jrummikub/control/SaveControlTest.java')
-rw-r--r--test/jrummikub/control/SaveControlTest.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/jrummikub/control/SaveControlTest.java b/test/jrummikub/control/SaveControlTest.java
index 72dba75..66a57cd 100644
--- a/test/jrummikub/control/SaveControlTest.java
+++ b/test/jrummikub/control/SaveControlTest.java
@@ -24,7 +24,7 @@ import org.junit.Test;
public class SaveControlTest {
/**
* @throws IOException
- * if input cannot be saved/loaded
+ * if input cannot be saved/loaded
*/
@Test
public void testSaveLoad() throws IOException {
@@ -33,7 +33,7 @@ public class SaveControlTest {
settings.getPlayerList().add(new PlayerSettings("Ida", Color.PINK));
GameState gameState = new GameState();
- RoundState roundState = new RoundState(settings);
+ RoundState roundState = new RoundState(settings, null);
Stone stone1 = new Stone(1, RED);
Stone stone2 = new Stone(5, RED);
@@ -57,12 +57,11 @@ public class SaveControlTest {
new IListener3<GameSettings, GameState, IRoundState>() {
@Override
- public void handle(GameSettings settings,
- GameState gameState, IRoundState roundState) {
+ public void handle(GameSettings settings, GameState gameState,
+ IRoundState roundState) {
assertEquals(2, settings.getPlayerList().size());
assertEquals(1, roundState.getTable().getSize());
- assertEquals(2, roundState.getActivePlayer().getHand()
- .getSize());
+ assertEquals(2, roundState.getActivePlayer().getHand().getSize());
}
});