@Override public void putImage(String name, Object asset) {}
@Override public Image getImage(String name) throws IOException { return null; }
};
DisplayMode displayMode = new DisplayMode(800, 600, 16, 60);
MockGameState gameState = new MockGameState(bus, resourceCache, displayMode);
GameLauncher launcher = new GameLauncher(bus, gameState);
Collection<String> players = new LinkedList<String>();
players.add("Bob");
players.add("Joe");
NewGameManifest manifest = new NewGameManifest();
for(String player : players) {
manifest.getPlayers().add(player);
}
launcher.startNewGame(manifest);
Collection<String> gameStatePlayers = gameState.getPlayers();
for(String player : players) {
assertTrue(gameStatePlayers.contains(player));