@@ -0,0 +1,2172 @@
+package org.amc.game.chess;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.amc.game.chess.ChessBoard.Coordinate;%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class MoveTest %7B%0A    private static final Location start=new Location(Coordinate.A,1);%0A    private static final Location end=new Location(Coordinate.D, 2);%0A    private static final Move move = new Move(start,end);%0A    @Before%0A    public void setUp() throws Exception %7B%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A    %7D%0A%0A    @Test%0A    public void testToString() %7B%0A        String moveStr=move.toString();%0A        assertEquals(moveStr, %22%5B(A,1)--%3E(D,2)%5D%22);%0A    %7D%0A    %0A    @Test%0A    public void testGetEnd()%7B%0A        assertEquals(end, move.getEnd());%0A    %7D%0A    %0A    @Test%0A    public void testGetStart()%7B%0A        assertEquals(start, move.getStart());%0A    %7D%0A    %0A    @Test%0A    public void testGetAbsoluteDistanceX()%7B%0A        assertEquals(3,move.getAbsoluteDistanceX().intValue());%0A    %7D%0A    %0A    @Test%0A    public void testGetAbsoluteDistanceY()%7B%0A        assertEquals(1,move.getAbsoluteDistanceY().intValue());%0A    %7D%0A    %0A    @Test%0A    public void testGetDistanceX()%7B%0A        assertEquals(-3,move.getDistanceX().intValue());%0A    %7D%0A    %0A    @Test%0A    public void testGetDistanceY()%7B%0A        assertEquals(-1,move.getDistanceY().intValue());%0A    %7D%0A    %0A    @Test%0A    public void testIsNotFileOrRankMove()%7B%0A        assertFalse(Move.isFileOrRankMove(move));%0A    %7D%0A    %0A    @Test%0A    public void testIsFileMove()%7B%0A        assertTrue(Move.isFileOrRankMove(new Move(start,new Location(Coordinate.H,1))));%0A    %7D%0A    %0A    @Test%0A    public void testIsRankMove()%7B%0A        assertTrue(Move.isFileOrRankMove(new Move(start,new Location(Coordinate.A,8))));%0A    %7D%0A    %0A    @Test%0A    public void testNoMoveIsNotFileOrRankMove()%7B%0A        assertFalse(Move.isFileOrRankMove(new Move(start,new Location(Coordinate.A,1))));%0A    %7D%0A    %0A    @Test%0A    public void testIsNotDiagonalMove()%7B%0A        assertFalse(Move.isDiagonalMove(move));%0A    %7D%0A    %0A    @Test%0A    public void testIsDiagonalMove()%7B%0A        assertTrue(Move.isDiagonalMove(new Move(start,new Location(Coordinate.C, 3))));%0A    %7D%0A%0A%7D%0A

implement test for Move