Class Card07Test

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

public class Card07Test extends Object
This test set verifies that character card 07 is able to manage, receive and give students.
It should also be able to swap a chosen number of students with ones on the player's entrance.
  • Field Details

  • Constructor Details

    • Card07Test

      public Card07Test()
  • Method Details

    • checkUse

      public void checkUse()
      Card 07 should be able to hold 6 students 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
    • checkExceptionUse

      public void checkExceptionUse() throws Exception
      An invalid player action should error out.
      A pair of students has to be selected for the action to be working
      Throws:
      Exception - an invalid input has been used to activate the card
    • checkUse4Pawns

      public void checkUse4Pawns() throws Exception
      An invalid player action should error out.
      Maximum three student pairs can be selected for the action to be working
      Throws:
      Exception - an invalid input has been used to activate the card
    • PawnNotPresentInCard

      public void PawnNotPresentInCard()
    • PawnNotInEntrance

      public void PawnNotInEntrance() throws Exception
      Throws:
      Exception
    • EmptyStudentBagExceptionCardConstructor

      public void EmptyStudentBagExceptionCardConstructor()
    • EmptyStudentBagCardUse

      public void EmptyStudentBagCardUse() throws Exception
      Throws:
      Exception