Package board

Class areCardsPickableTest

java.lang.Object
board.areCardsPickableTest

public class areCardsPickableTest extends Object

class that test the areCardsPickable method of the Board class

The False tests are: 0, 1, 10

The True tests are: 2, 3, 4, 5, 6, 7, 8, 9

  • Constructor Details

    • areCardsPickableTest

      public areCardsPickableTest()
  • Method Details

    • setUp

      public void setUp()
      The Before method start before every test and is used to create the new objects on which perform the testing
    • twoPlayers_pickOnly_TwoCards

      public void twoPlayers_pickOnly_TwoCards()
      Test the case in which only 2 cards are picked in a board initialized for just 2 players
    • adiacent_Allineated_FreeSide

      public void adiacent_Allineated_FreeSide()
      Test the case in which the cards picked are Adjacent Positioned: aligned They have at least one free side
    • adiacent_NotAllineated_FreeSide

      public void adiacent_NotAllineated_FreeSide()
      Test the case in which the cards picked are Adjacent Positioned: not aligned They have at least one free side
    • notAdiacent_Allineated_FreeSide_Vertical

      public void notAdiacent_Allineated_FreeSide_Vertical()
      Test the case in which the cards picked are not Adjacent Positioned: aligned They have at least one free side
    • notAdiacent_Allineated_FreeSide_Orizontal

      public void notAdiacent_Allineated_FreeSide_Orizontal()
      Test the case in which the cards picked are not Adjacent Positioned: aligned They have at least one free side
    • adiacent_Allineated_NotFreeSide

      public void adiacent_Allineated_NotFreeSide()
      Test the case in which the cards picked are Adjacent Positioned: aligned They don't have at least one free side
    • adiacent_NotAllineated_NotFreeSide

      public void adiacent_NotAllineated_NotFreeSide()
      Test the case in which the cards picked are Adjacent Positioned: not aligned They don't have at least one free side
    • notAdiacent_Allineated_NotFreeSide

      public void notAdiacent_Allineated_NotFreeSide()
      Test the case in which the cards picked are not Adjacent Positioned: aligned They don't have at least one free side
    • notAdiacent_NotAllineated_FreeSide

      public void notAdiacent_NotAllineated_FreeSide()
      Test the case in which the cards picked are not Adjacent Positioned: aligned They have at least one free side
    • notAdiacent_NotAllineated_NotFreeSide

      public void notAdiacent_NotAllineated_NotFreeSide()
      Test the case in which the cards picked are not Adjacent Positioned: not aligned They don't have at least one free side
    • Adiacent_Allineated_FreeSide_ButPickedNotInOrder

      public void Adiacent_Allineated_FreeSide_ButPickedNotInOrder()
      Test the case in which the cards picked are Adjacent Positioned: aligned They don't have at least one free side They are picked near but not in consecutive order