Exemplo n.º 1
0
  @Given("startPhaseSetFirstAmeba")
  public UrsuppeGUI testDataPhaseSetFirstAmeba(UrsuppeGUI ursuppe) {
    PhaseSetFirstAmeba phase =
        (PhaseSetFirstAmeba)
            this.getObjectPhase(
                this.phaseLogic
                    .getActivePhase()); // Important! Each phase test should have this line!

    // System.out.println("ORDER OF PLAYERS IN SCRIPTED GAME: "+
    // this.game.getOrderOfPlayersColor());
    assertTrue(this.game.getOrderOfPlayersColor().equals(this.getControlOrder())); // Check order!

    /////////////////////////
    //// *SET FIRST AMEBA*////
    /////////////////////////

    ///////////
    // YELLOW://
    ///////////

    setAmebaPhaseSetFirstAmebaCheck(
        phase, this.playerYellow, 4, 0, true, true, true, true, 1, 2, 2, 1);
    this.goHavingANap(); // @for see only

    /////////
    // BLUE://
    /////////

    this.setAmebaPhaseSetFirstAmebaCheck(
        phase, this.playerBlue, 4, 0, true, true, true, true, 3, 4, 2, 1);
    this.goHavingANap(); // @for see only

    ////////
    // RED://
    ///////

    this.setAmebaPhaseSetFirstAmebaCheck(
        phase, this.playerRed, 4, 0, true, true, true, true, 3, 2, 4, 1);
    this.goHavingANap(); // @for see only

    /////////////////////////
    //// *SET SECOND AMEBA*////
    /////////////////////////

    ///////////
    // YELLOW://
    ///////////
    this.setAmebaPhaseSetFirstAmebaCheck(
        phase, this.playerYellow, 3, 1, false, true, true, true, 3, 4, 3, 0);
    this.goHavingANap(); // @for see only

    /////////
    // BLUE://
    /////////
    this.setAmebaPhaseSetFirstAmebaCheck(
        phase, this.playerBlue, 3, 1, true, true, false, true, 4, 5, 4, 0);
    this.goHavingANap(); // @for see only

    ////////
    // RED://
    ///////
    this.setAmebaPhaseSetFirstAmebaCheck(
        phase, this.playerRed, 3, 1, true, true, false, true, 2, 3, 1, 0);
    this.goHavingANap(); // @for see only

    ///////// THIS WAS THE LAST AMEBA!
    assertTrue(phase.getButtonGoToPhase1IsEnabled());
    phase.fakeClickButtonGoToPhase1();

    return ursuppe;
  }