Package library
Class checkColTest
java.lang.Object
library.checkColTest
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 PPGPPvoid
in this test colomn 0 is empty so we can insert cards
matrix PPPP BPPP BBBB BGPP PGPP PGPPvoid
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 GPGPPvoid
setUp()
method executed before every test that create a new library
-
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 P P P P P P B P P P B B B B B P B G P P P P G P P P P G P P -
checkCol_emptyColumn_correct
public void checkCol_emptyColumn_correct()in this test colomn 0 is empty so we can insert cards
matrix P P P P B P P P B B B B B G P P P G P P P G P P -
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 P P P P B P P P G B B B B G B G P P G P G P P G P G P P
-