Package it.polimi.ingsw.Model
Class Card05Test
java.lang.Object
it.polimi.ingsw.Model.Card05Test
This test set verifies that character card 05 is able to manage, receive and give no entry tiles.
It should also be able to understand to which destination the tile is destined or error out
It should also be able to understand to which destination the tile is destined or error out
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
If the card has already given out all of its tiles, it should error out when prompted for handling out morevoid
An invalid player action should error out.void
An invalid player action should error out.void
An invalid player action should error out.void
checkUse()
Card 05 should ba able to hold 4 entry tile and when activated to put one tile on the chosen island.
-
Field Details
-
gb
-
card05
-
-
Constructor Details
-
Card05Test
public Card05Test()
-
-
Method Details
-
checkUse
Card 05 should ba able to hold 4 entry tile and when activated to put one tile on the chosen island. If the island doesn't need it anymore the card should be able to receive the tile used- Throws:
Exception
- is thrown when an invalid card activation happens, but this test should not error out (by definition)
-
checkInputException
An invalid player action should error out.
An island has to be selected for the action to be working- Throws:
Exception
- an invalid input has been used to activate the card
-
checkInvalidIslandInput
An invalid player action should error out.
An island must have a valid id to be selected- Throws:
Exception
- an invalid input has been used to activate the card
-
checkIslandNotInField
An invalid player action should error out.
An island must exist in the island field to be selected- Throws:
Exception
- an invalid input has been used to activate the card
-
checkEmptyCard
If the card has already given out all of its tiles, it should error out when prompted for handling out more- Throws:
Exception
-