Package library

Class checkColTest

java.lang.Object
library.checkColTest

public class checkColTest extends Object

class that test the checkCol method of the library class The checkCol method checks if the selected column has enough space to insert a specific number of cards

The False tests are:1,3

The True tests are: 2

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    in this test all the columns are filled so that we can't insert any other card in the library
    matrix PPPPP PBPPP BBBBB PBGPP PPGPP PPGPP
    void
    in this test colomn 0 is empty so we can insert cards
    matrix    PPPP    BPPP    BBBB    BGPP    PGPP    PGPP
    void
    in this test column 0 has 2 free spaces but there are 3 cards to put in the same column
    matrix    PPPP    BPPP GBBBB GBGPP GPGPP GPGPP
    void
    method executed before every test that create a new library

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • checkColTest

      public checkColTest()
  • Method Details

    • setUp

      public void setUp()
      method executed before every test that create a new library
    • checkCol_allFull

      public void checkCol_allFull()
      in this test all the columns are filled so that we can't insert any other card in the library
      matrix
      PPPPP
      PBPPP
      BBBBB
      PBGPP
      PPGPP
      PPGPP
    • checkCol_emptyColumn_correct

      public void checkCol_emptyColumn_correct()
      in this test colomn 0 is empty so we can insert cards
      matrix
         PPPP
         BPPP
         BBBB
         BGPP
         PGPP
         PGPP
    • checkCol_tooManyCards

      public void checkCol_tooManyCards()
      in this test column 0 has 2 free spaces but there are 3 cards to put in the same column
      matrix
         PPPP
         BPPP
      GBBBB
      GBGPP
      GPGPP
      GPGPP