public class GameViewTests
extends javafx.application.Application
Constructor and Description |
---|
GameViewTests() |
Modifier and Type | Method and Description |
---|---|
void |
addCardToView()
Add a card to the view and verify the number of cards
of the default group (root3d) have been increase
|
static void |
initApplication()
Constructs a view and run it in another thread for the tests.
|
void |
initGame() |
void |
moveCard()
Add a card to the view then move it to another group
and verify the number of cards of the group have been increase
It might fail, if it does, relaunch the tests
|
void |
removeCard()
Add a card to the view then delete it and verify the number of cards of the group have been increase
|
void |
removeCardFromGroup()
Add a card to the view then delete and verify the number of cards of the group have been decrease
|
void |
start(javafx.stage.Stage window)
Create the scene of the application before the tests.
|
public static void initApplication()
public void initGame()
public void addCardToView()
public void moveCard()
public void removeCardFromGroup()
public void removeCard()
public void start(javafx.stage.Stage window) throws java.lang.Exception
start
in class javafx.application.Application
window
- the app main stagejava.lang.Exception