Examples of substitutePlayers()


Examples of games.pickupbot.Game.substitutePlayers()

    public void testPlayerSubstitution() {
        Game game = Game.tryParse(this.games[0]);

        game.addPlayer(this.testPlayer1);

        game.substitutePlayers(this.testPlayer1, this.testPlayer2);

        assertTrue(game.hasPlayers());

        assertEquals(game.getPlayerList().get(0), this.testPlayer2);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.