Package it.polimi.ingsw.Model
Class Card07Test
java.lang.Object
it.polimi.ingsw.Model.Card07Test
This test set verifies that character card 07 is able to manage, receive and give students.
It should also be able to swap a chosen number of students with ones on the player's entrance.
It should also be able to swap a chosen number of students with ones on the player's entrance.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
An invalid player action should error out.void
checkUse()
Card 07 should be able to hold 6 students and when activated to put one tile on the chosen island.void
An invalid player action should error out.void
void
void
void
-
Field Details
-
gb
-
-
Constructor Details
-
Card07Test
public Card07Test()
-
-
Method Details
-
checkUse
public void checkUse()Card 07 should be able to hold 6 students 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 -
checkExceptionUse
An invalid player action should error out.
A pair of students has to be selected for the action to be working- Throws:
Exception
- an invalid input has been used to activate the card
-
checkUse4Pawns
An invalid player action should error out.
Maximum three student pairs can be selected for the action to be working- Throws:
Exception
- an invalid input has been used to activate the card
-
PawnNotPresentInCard
public void PawnNotPresentInCard() -
PawnNotInEntrance
- Throws:
Exception
-
EmptyStudentBagExceptionCardConstructor
public void EmptyStudentBagExceptionCardConstructor() -
EmptyStudentBagCardUse
- Throws:
Exception
-