public class GameModelTests
extends java.lang.Object
Constructor and Description |
---|
GameModelTests() |
Modifier and Type | Method and Description |
---|---|
void |
cuttingCardsTest()
Test on cutting Cards method
No exception should be fired
|
void |
dealAllCardsTest()
Test on card dealing
No exception should be fired
|
void |
GameModelInstantiationTest()
Test if instantiation increments Card instances number
No exception should be fired
|
void |
gatherAllCardsTest()
Test on card gather after dealing
No exception should be fired
|
void |
initGameModel()
Reset static fields before each test
|
void |
moveCardsBetweenDecksTest()
Test on card moving between two decks
No exception should be fired
|
void |
quitGameTest()
Test quitGame method
|
void |
randomCardTest()
Test on random class method
No exception should be fired
|
void |
shufflingCardsTest()
Test on shuffling Cards method
No exception should be fired
|
public void initGameModel()
public void GameModelInstantiationTest() throws CardGroupNumberException
CardGroupNumberException
- if user tries to create too much handspublic void shufflingCardsTest() throws CardGroupNumberException
CardGroupNumberException
- if user tries to create too much handspublic void cuttingCardsTest() throws CardGroupNumberException
CardGroupNumberException
- if user tries to create too much handspublic void dealAllCardsTest() throws CardGroupNumberException
CardGroupNumberException
- if user tries to create too much handspublic void gatherAllCardsTest() throws CardGroupNumberException
CardGroupNumberException
- if user tries to create too much handspublic void moveCardsBetweenDecksTest() throws CardGroupNumberException
CardGroupNumberException
- if user tries to create too much handspublic void randomCardTest() throws CardGroupNumberException
CardGroupNumberException
- if user tries to create too much handspublic void quitGameTest()