@@ -0,0 +1,1827 @@
+/**%0A *%0A * @author Ryan J. Marcotte%0A */%0A%0Apackage game;%0A%0Aimport org.junit.*;%0Aimport static org.junit.Assert.*;%0A%0Aimport java.util.ArrayList;%0A%0Apublic class RookTest%0A%7B%0A    @Test%0A    public void testMoveLocations()%0A    %7B%0A        ChessBoard board = new ChessBoard();%0A%0A        final int R1_EXPECTED%5B%5D = %7B30, 38, 46, 54, 56, 57, 58, 59, 60, 61, 63%7D;%0A        final int R2_EXPECTED%5B%5D = %7B6, 14, 22, 27, 28, 29, 31, 38, 46, 54, 62%7D;%0A        final int R3_EXPECTED%5B%5D = %7B2, 10, 18, 24, 25, 27, 28, 29, 34%7D;%0A        final int R4_EXPECTED%5B%5D = %7B26, 32, 33, 35, 36, 37, 38, 39, 42, 50, 58%7D;%0A%0A        Rook r1 = new Rook(board.getSquareAt(62));%0A        Rook r2 = new Rook(board.getSquareAt(30));%0A        Rook r3 = new Rook(board.getSquareAt(26));%0A        Rook r4 = new Rook(board.getSquareAt(34));%0A%0A        ArrayList%3CSquare%3E r1Actual = r1.generateMoveLocations();%0A        ArrayList%3CSquare%3E r2Actual = r2.generateMoveLocations();%0A        ArrayList%3CSquare%3E r3Actual = r3.generateMoveLocations();%0A        ArrayList%3CSquare%3E r4Actual = r4.generateMoveLocations();%0A%0A        assertEquals(R1_EXPECTED.length, r1Actual.size());%0A%0A        for (int i = 0; i %3C R1_EXPECTED.length; i++)%0A            assertEquals(R1_EXPECTED%5Bi%5D, r1Actual.get(i).getIntLocation());%0A%0A        assertEquals(R2_EXPECTED.length, r2Actual.size());%0A%0A        for (int i = 0; i %3C R2_EXPECTED.length; i++)%0A            assertEquals(R2_EXPECTED%5Bi%5D, r2Actual.get(i).getIntLocation());%0A        %0A        assertEquals(R3_EXPECTED.length, r3Actual.size());%0A%0A        for (int i = 0; i %3C R3_EXPECTED.length; i++)%0A            assertEquals(R3_EXPECTED%5Bi%5D, r3Actual.get(i).getIntLocation());%0A        %0A        assertEquals(R4_EXPECTED.length, r4Actual.size());%0A%0A        for (int i = 0; i %3C R4_EXPECTED.length; i++)%0A            assertEquals(R4_EXPECTED%5Bi%5D, r4Actual.get(i).getIntLocation());%0A     %0A    %7D%0A%7D%0A

add test for move locations for the rook