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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidIf the card has already given out all of its tiles, it should error out when prompted for handling out morevoidAn invalid player action should error out.voidAn invalid player action should error out.voidAn invalid player action should error out.voidcheckUse()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- 
Card05Testpublic Card05Test()
 
- 
- 
Method Details- 
checkUseCard 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)
 
- 
checkInputExceptionAn 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
 
- 
checkInvalidIslandInputAn 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
 
- 
checkIslandNotInFieldAn 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
 
- 
checkEmptyCardIf the card has already given out all of its tiles, it should error out when prompted for handling out more- Throws:
- Exception
 
 
-