class RealManagerTest
extends wcg.WebCardGameTest
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
RealManagerTest.TestPlayers
A class similar to
TestPlayers
but using manager rather than Gamemaster. |
| Modifier and Type | Field and Description |
|---|---|
(package private) static Manager |
manager |
| Constructor and Description |
|---|
RealManagerTest() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
cleanUpAfterClass() |
(package private) void |
setUp() |
(package private) static void |
setUpBeforeClass() |
(package private) void |
testAddBot_invalid()
Create a game but ignore the id when adding a bot.
|
(package private) void |
testAddBot() |
(package private) void |
testAddPlayer()
Check adding a player, without registering, with invalid password
|
(package private) void |
testCreateGame_invalid()
Check that an invalid game name raises an exception
|
(package private) void |
testCreateGame()
Check that game creation returns a game id
|
(package private) void |
testGetAvailableGames_afterCreateGame()
Create several games and check that number of available games
increases accordingly
|
(package private) void |
testGetAvailableGames()
Check if an empty list of games is reported
|
(package private) void |
testGetGameNames()
Check if the names of the implemented games are
reported by getGameNames()
|
(package private) void |
testGetInstance()
Check that an instance is available
|
(package private) void |
testGetRecentEvents()
Check that players added to a game receive events from that game.
|
(package private) void |
testPlayCards_HEARTS()
Test playing HERTS to the end
|
(package private) void |
testPlayCards_WAR_invalidPlay()
Test playing WAR a do a invalid move:3 cards as first play
|
(package private) void |
testPlayCards_WAR()
Test playing WAR for a few rounds (or the end of the game)
|
static Manager manager
@BeforeAll
static void setUpBeforeClass()
throws java.lang.Exception
java.lang.Exception@BeforeEach
void setUp()
throws java.lang.Exception
java.lang.Exception@AfterAll
static void cleanUpAfterClass()
throws java.lang.Exception
java.lang.Exception@Test void testGetInstance()
@Test void testGetGameNames()
@Test void testGetAvailableGames()
@Test
void testGetAvailableGames_afterCreateGame()
throws CardGameException
CardGameException@Test
void testCreateGame()
throws CardGameException
CardGameException@Test void testCreateGame_invalid()
@Test
void testAddPlayer()
throws CardGameException
CardGameException@Test
void testAddBot()
throws CardGameException
CardGameException@Test
void testAddBot_invalid()
throws CardGameException
CardGameException@Test
void testGetRecentEvents()
throws CardGameException
CardGameExceptionvoid testPlayCards_WAR_invalidPlay()
throws CardGameException
CardGameException@Test
void testPlayCards_WAR()
throws CardGameException
CardGameException@Test
void testPlayCards_HEARTS()
throws CardGameException
CardGameException