Class Card03Test

java.lang.Object
it.polimi.ingsw.Model.Card03Test

public class Card03Test extends Object
This test set verifies that the card 03 is able to change the control of an island leaving mother nature still
  • Field Details

  • Constructor Details

    • Card03Test

      public Card03Test()
  • Method Details

    • checkUse

      public void checkUse() throws Exception
      Card 03 should be able to change influence on an island according to rules without moving mother nature on it
      Throws:
      Exception - is thrown when an invalid card activation happens, but this test should not error out (by definition)
    • checkInvalidInput

      public void checkInvalidInput() throws Exception
      An invalid player action should error out.
      An island has to be selected for the action to be working
      Throws:
      Exception - an invalid input has been used to activate the card
    • checkInvalidIslandInput

      public void checkInvalidIslandInput() throws Exception
      An invalid player action should error out.
      An island must have a valid id to be selected
      Throws:
      Exception - an invalid input has been used to activate the card
    • checkIslandNotInField

      public void checkIslandNotInField() throws Exception
      An invalid player action should error out.
      An island must exist in the island field to be selected
      Throws:
      Exception - an invalid input has been used to activate the card