Tests pass OK
authorJaroslav Tulach <jtulach@netbeans.org>
Sun, 10 May 2009 22:23:51 +0200
changeset 54bde8624aee8
parent 4 fcf9dd2a8aed
child 6 9fe4d8166f4d
Tests pass OK
quoridor/src/test/java/cz/xelfi/quoridor/BoardTest.java
     1.1 --- a/quoridor/src/test/java/cz/xelfi/quoridor/BoardTest.java	Sun May 10 22:17:10 2009 +0200
     1.2 +++ b/quoridor/src/test/java/cz/xelfi/quoridor/BoardTest.java	Sun May 10 22:23:51 2009 +0200
     1.3 @@ -7,10 +7,9 @@
     1.4  
     1.5  package cz.xelfi.quoridor;
     1.6  
     1.7 +import java.util.List;
     1.8  import junit.framework.*;
     1.9  
    1.10 -import cz.xelfi.quoridor.Board.*;
    1.11 -
    1.12  /** Checks default setup of empty board.
    1.13   *
    1.14   * @author Jaroslav Tulach
    1.15 @@ -29,7 +28,7 @@
    1.16      }
    1.17  
    1.18      public void testTwoPlayers () {
    1.19 -        java.util.List<Player> list = board.getPlayers ();
    1.20 +        List<Board.Player> list = board.getPlayers();
    1.21          assertEquals ("Two", 2, list.size ());
    1.22          assertFalse ("Both are non-null", list.contains (null));
    1.23          try {
    1.24 @@ -110,7 +109,7 @@
    1.25      public void testCannotJumpOverFence () throws Exception {
    1.26          Board b = board.fence (board.getPlayers ().get (0), 'D', 8, Board.Fence.Orientation.HORIZONTAL);
    1.27          try {
    1.28 -            b.move (board.getPlayers ().get (1), Player.Direction.SOUTH);
    1.29 +            b.move (board.getPlayers ().get (1), Board.Player.Direction.SOUTH);
    1.30              fail ("This shall not be allowed, as there is the fence");
    1.31          } catch (IllegalPositionException ex) {
    1.32              // ok