@Given("startPhase1") public UrsuppeGUI testDataPhase1(UrsuppeGUI ursuppe) // Move/Drift and Eat { Phase1 phase = (Phase1) this.getObjectPhase( this.phaseLogic .getActivePhase()); // Important! Each phase test should have this line! Ameba activeAmeba; assertFalse(phase.getButtonGoToPhase2IsEnabled()); assertTrue(this.game.getReadDirection() == GameReadDirection.up); // CHECK WINDDIRECTION: assertThat(this.game.getActualeDirection(), checkDirection.checkDirection(GameDirection.North)); ////////// // YELLOW// ////////// assertThat(this.game.getActualPlayer(), checkPlayer.checkPlayer(this.playerYellow)); assertThat(this.playerYellow.getNrOfFoodsToEat(), checkInteger.checkInteger(3)); //////////// // *AMEBA 1// //////////// this.moveDriftAndEatTest( phase, this.playerYellow, true, false, 0, GameDirection.North, 2, 1, 0, 1, 1, 1, 2, 2, true, false, 2, 2, 2, 2, 1, 0, 1, 4); this.goHavingANap(); // @for see only //////////// // *AMEBA 3// //////////// this.moveDriftAndEatTest( phase, this.playerYellow, true, false, 0, GameDirection.North, 1, 2, 0, 3, 0, 0, 4, 3, true, false, 2, 2, 2, 4, 2, 1, 0, 4); this.goHavingANap(); // @for see only assertFalse(phase.getButtonGoToPhase2IsEnabled()); //////// // BLUE// //////// assertThat(this.game.getActualPlayer(), checkPlayer.checkPlayer(this.playerBlue)); assertThat(this.playerBlue.getNrOfFoodsToEat(), checkInteger.checkInteger(3)); //////////// // *AMEBA 3// //////////// this.moveDriftAndEatTest( phase, this.playerBlue, true, false, 0, GameDirection.North, 0, 1, 2, 3, 1, 1, 4, 2, false, false, 1, 0, 4, 4, 1, 4, 1, 0); this.goHavingANap(); // @for see only //////////// // *AMEBA 4// //////////// this.moveDriftAndEatTest( phase, this.playerBlue, false, true, 5, GameDirection.Middle, 0, 1, 2, 4, 0, 0, 5, 4, false, true, 4, 1, 0, 5, 4, 4, 1, 0); this.goHavingANap(); // @for see only assertFalse(phase.getButtonGoToPhase2IsEnabled()); //////// // RED// /////// assertThat(this.game.getActualPlayer(), checkPlayer.checkPlayer(this.playerRed)); assertThat(this.playerRed.getNrOfFoodsToEat(), checkInteger.checkInteger(3)); //////////// // *AMEBA 2// //////////// this.moveDriftAndEatTest( phase, this.playerRed, false, true, 4, GameDirection.South, 1, 0, 2, 2, 0, 0, 3, 1, true, false, 2, 2, 2, 3, 2, 1, 4, 0); this.goHavingANap(); // @for see only //////////// // *AMEBA 3// //////////// this.moveDriftAndEatTest( phase, this.playerRed, true, false, 0, GameDirection.North, 2, 0, 1, 3, 1, 1, 2, 4, true, false, 2, 2, 2, 2, 3, 0, 4, 1); this.goHavingANap(); // @for see only assertTrue(phase.getButtonGoToPhase2IsEnabled()); phase.fakeClickbuttonGoToPhase2(); return ursuppe; }