Class PlayCharacterCardTest

java.lang.Object
it.polimi.ingsw.Controller.PlayCharacterCardTest

public class PlayCharacterCardTest extends Object
  • Constructor Details

    • PlayCharacterCardTest

      public PlayCharacterCardTest()
  • Method Details

    • checkUse

      public void checkUse() throws Exception
      Throws:
      Exception
    • initializeModel

      private Model initializeModel(int coinReserve, int coinPerPlayer, int card)
      Support method to create a model by using its constructor for debug purposes
      Parameters:
      coinReserve - coins available
      coinPerPlayer - amount of coins that every player will have
      card - card that will be available in game
      Returns:
      custom model
    • initializeControllerAndPlayAssistantCard

      private Controller initializeControllerAndPlayAssistantCard(Model model) throws InputValidationException
      Support method used to create a Controller and execute SETUP-PHASE
      Parameters:
      model - model that will be handled by GameHandler
      Returns:
      Controller necessary to execute actions inside tests
      Throws:
      InputValidationException - error related to playAssistantCard actions
    • CharacterCardIndexOutOfBound

      public void CharacterCardIndexOutOfBound() throws Exception
      Throws:
      Exception
    • duplicateCharacterCardAction

      public void duplicateCharacterCardAction() throws Exception
      Throws:
      Exception
    • simpleModePlayAttempt

      public void simpleModePlayAttempt() throws Exception
      Throws:
      Exception
    • noAssistantCardPlayed

      public void noAssistantCardPlayed() throws Exception
      Throws:
      Exception
    • InsufficientBalanceException

      public void InsufficientBalanceException() throws Exception
      Throws:
      Exception