Class Card05Test

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

public class Card05Test extends Object
This test set verifies that character card 05 is able to manage, receive and give no entry tiles.
It should also be able to understand to which destination the tile is destined or error out
  • Field Details

  • Constructor Details

    • Card05Test

      public Card05Test()
  • Method Details

    • checkUse

      public void checkUse() throws Exception
      Card 05 should ba able to hold 4 entry tile and when activated to put one tile on the chosen island. If the island doesn't need it anymore the card should be able to receive the tile used
      Throws:
      Exception - is thrown when an invalid card activation happens, but this test should not error out (by definition)
    • checkInputException

      public void checkInputException() 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
    • checkEmptyCard

      public void checkEmptyCard() throws Exception
      If the card has already given out all of its tiles, it should error out when prompted for handling out more
      Throws:
      Exception