@@ -0,0 +1,1132 @@
+package pylos.test;%0A%0Aimport java.util.List;%0A%0Aimport pylos.model.Ball;%0Aimport pylos.model.Model;%0Aimport pylos.model.Player;%0Aimport pylos.model.Position;%0A%0Apublic class RiseBallTest extends PylosTestCase %7B%0A%09public void testRiseBall() %7B%0A%09%09Player p = Model.currentPlayer;%0A%09%09assertTrue(p.getMountableBalls().isEmpty());%0A%0A%09%09/*%0A%09%09 * xxx0%0A%09%09 * xx00%0A%09%09 * 0000%0A%09%09 * 0000%0A%09%09 */%0A%09%09// We should alternate which player place a Ball, but it does not matter for this test%0A%09%09Model.currentPlayer.putBallOnBoard(Position.at(0, 0, 0));%0A%09%09Model.currentPlayer.putBallOnBoard(Position.at(0, 1, 0));%0A%09%09Model.currentPlayer.putBallOnBoard(Position.at(1, 1, 0));%0A%09%09Model.currentPlayer.putBallOnBoard(Position.at(1, 0, 0));%0A%09%09Model.currentPlayer.putBallOnBoard(Position.at(2, 0, 0));%0A%0A%09%09List%3CBall%3E mountables = p.getMountableBalls();%0A%09%09assertEquals(1, mountables.size());%0A%09%09assertEquals(Model.board.ballAt(Position.at(2, 0, 0)), mountables.get(0));%0A%0A%09%09Ball ball = mountables.get(0);%0A%09%09List%3CPosition%3E positionsToRise = Model.getPositionsToRise(ball);%0A%0A%09%09assertEquals(1, positionsToRise.size());%0A%09%09assertEquals(Position.at(0, 0, 1), positionsToRise.get(0));%0A%09%7D%0A%7D%0A

add a test for rising a ball