Class ShelfTest

java.lang.Object
it.polimi.ingsw.Server.Model.ShelfTest

public class ShelfTest extends Object
Player's Shelf tests
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) Shelf
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (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
    Creates an empty Shelf, fills it and checks for correct Exception management
    (package private) void
    Fills the shelf and checks for isNull and effectively empty spaces in columns properties
    (package private) void
    Test of JSON Serialization
    (package private) void
    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

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • ShelfTest

      public ShelfTest()
  • Method Details

    • creation

      @Test void creation() throws Exception
      Creates an empty Shelf, fills it and checks for correct Exception management
      Throws:
      Exception - related to insertion and obtaining of cards
    • coordinateAndList

      @Test void coordinateAndList() throws Exception
      Tests functionality of coordinates and shelfCards methods
      Throws:
      Exception
    • rulebookFinalCount

      @Test void rulebookFinalCount() throws Exception
      Checks functionality of the final evaluation using the rulebook example
      Throws:
      Exception
    • randomFinalEvaluation

      @Test void randomFinalEvaluation() throws Exception
      Checks functionality of the final evaluation using a randomically generated Shelf
      Throws:
      Exception
    • completeFinalCount

      @Test void completeFinalCount() throws Exception
      Checks functionality of the final evaluation using a complete example
      Throws:
      Exception
    • rulebookExample

      @Test void rulebookExample() throws Exception
      Rulebook example of final evaluation test
      Throws:
      Exception
    • JSONSerialization

      @Test void JSONSerialization() throws Exception
      Test of JSON Serialization
      Throws:
      Exception
    • filling

      @Test void filling() throws Exception
      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