From 70d6ae6d749d11ced007fa781ce65c6e27229007 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Mon, 13 Jun 2011 18:22:55 +0200 Subject: Player Type in player settings verschoben git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@420 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/control/turn/BaseAIControlTest.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'test/jrummikub/control/turn') diff --git a/test/jrummikub/control/turn/BaseAIControlTest.java b/test/jrummikub/control/turn/BaseAIControlTest.java index fe06398..51b1f1f 100644 --- a/test/jrummikub/control/turn/BaseAIControlTest.java +++ b/test/jrummikub/control/turn/BaseAIControlTest.java @@ -10,6 +10,7 @@ import jrummikub.model.IPlayer; import jrummikub.model.ITable; import jrummikub.model.Player; import jrummikub.model.PlayerSettings; +import jrummikub.model.PlayerSettings.Type; import jrummikub.model.Position; import jrummikub.model.Stone; import jrummikub.model.StoneColor; @@ -36,8 +37,7 @@ public class BaseAIControlTest { /** */ @Before public void setUp() { - aiControl = TurnControlFactory.getFactory(TurnControlFactory.Type.COMPUTER) - .create(); + aiControl = TurnControlFactory.getFactory(Type.COMPUTER).create(); gameSettings = new GameSettings(); playerSettings = new PlayerSettings("ROBOT_01", Color.GRAY); player = new Player(playerSettings); @@ -75,7 +75,8 @@ public class BaseAIControlTest { */ @Test(timeout = 10000) public void testTurnZeroRedealing() throws InterruptedException { - aiControl.setup(new ITurnControl.TurnInfo(table, player.getHand(), player.getLaidOut(), TurnMode.MAY_REDEAL), gameSettings, view); + aiControl.setup(new ITurnControl.TurnInfo(table, player.getHand(), + player.getLaidOut(), TurnMode.MAY_REDEAL), gameSettings, view); aiControl.startTurn(); while (!redealt) { Thread.sleep(100); @@ -89,7 +90,10 @@ public class BaseAIControlTest { */ @Test(timeout = 10000) public void testTurnZeroNotMelding() throws InterruptedException { - aiControl.setup(new ITurnControl.TurnInfo(table, player.getHand(), player.getLaidOut(), TurnMode.INSPECT_ONLY), gameSettings, view); + aiControl + .setup(new ITurnControl.TurnInfo(table, player.getHand(), + player.getLaidOut(), TurnMode.INSPECT_ONLY), + gameSettings, view); aiControl.startTurn(); while (!turnEnded) { Thread.sleep(100); @@ -103,7 +107,8 @@ public class BaseAIControlTest { */ @Test(timeout = 10000) public void testNormalTurnMelding() throws InterruptedException { - aiControl.setup(new ITurnControl.TurnInfo(table, player.getHand(), player.getLaidOut(), TurnMode.NORMAL_TURN), gameSettings, view); + aiControl.setup(new ITurnControl.TurnInfo(table, player.getHand(), + player.getLaidOut(), TurnMode.NORMAL_TURN), gameSettings, view); aiControl.startTurn(); while (!turnEnded) { Thread.sleep(100); -- cgit v1.2.3