assertEquals(game.getPlayerList().size(), 1);
}
public void testGatherPickupGame() {
Game game = Game.tryParse(this.games[2]);
game.addListener(new GameListener() {
@Override
public void pickupFormed(Game game) {
assertTrue(game.getPlayerNicknames()[0].startsWith("testPlayerNick1"));
assertTrue(game.getPlayerNicknames()[1].startsWith("testPlayerNick2"));
}
@Override
public void playerAutomaticallyRemoved(Player player, Game game) {
}
});
game.addPlayer(this.testPlayer1);
game.addPlayer(this.testPlayer2);
assertEquals(game.getPlayerList().size(), 0);
}