Skip to content

Commit

Permalink
Adding NotMeException test for Queen.
Browse files Browse the repository at this point in the history
  • Loading branch information
skytreader committed Sep 29, 2014
1 parent 55ef2cb commit 9395f14
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -107,4 +107,13 @@ public void testInitialConfiguration(){
nme.printStackTrace();
}
}

@Test
public void testNotMe() throws NotMeException{
exception.expect(NotMeException.class);
Board testBoard = new GridBoard();

// Try to use a white rook to move the black rook at (0, 0).
whiteQueen.getLegalMoves(0, 0, testBoard);
}
}

0 comments on commit 9395f14

Please sign in to comment.