Package it.polimi.ingsw.Server.Model
Class ShelfTest
java.lang.Object
it.polimi.ingsw.Server.Model.ShelfTest
Player's Shelf tests
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
Checks functionality of the final evaluation using a complete example(package private) void
Tests functionality of coordinates and shelfCards methods(package private) void
creation()
Creates an empty Shelf, fills it and checks for correct Exception management(package private) void
filling()
Fills the shelf and checks for isNull and effectively empty spaces in columns properties(package private) void
Test of JSON Serialization(package private) void
outShelf()
Tests System.out of the Shelf, after each test(package private) void
Checks functionality of the final evaluation using a randomically generated Shelf(package private) void
Rulebook example of final evaluation test(package private) void
Checks functionality of the final evaluation using the rulebook example
-
Field Details
-
s
Shelf s
-
-
Constructor Details
-
ShelfTest
public ShelfTest()
-
-
Method Details
-
creation
Creates an empty Shelf, fills it and checks for correct Exception management- Throws:
Exception
- related to insertion and obtaining of cards
-
coordinateAndList
Tests functionality of coordinates and shelfCards methods- Throws:
Exception
-
rulebookFinalCount
Checks functionality of the final evaluation using the rulebook example- Throws:
Exception
-
randomFinalEvaluation
Checks functionality of the final evaluation using a randomically generated Shelf- Throws:
Exception
-
completeFinalCount
Checks functionality of the final evaluation using a complete example- Throws:
Exception
-
rulebookExample
Rulebook example of final evaluation test- Throws:
Exception
-
JSONSerialization
Test of JSON Serialization- Throws:
Exception
-
filling
Fills the shelf and checks for isNull and effectively empty spaces in columns properties- Throws:
Exception
-
outShelf
@AfterEach void outShelf()Tests System.out of the Shelf, after each test
-