From f3f8ffe4621e91d33732bba9e103ff790a16c7b3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 20 Jun 2011 03:59:04 +0200 Subject: Added NetworkGameControl git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@503 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/control/SaveControlTest.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'test/jrummikub/control/SaveControlTest.java') 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() { @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()); } }); -- cgit v1.2.3