jago-server/src/test/java/jago/server/board/BoardTest.java
@Test
    public void testMove() {
        //Testing of KO
        assertTrue(board.move(StoneColor.WHITE,0, 0));
        assertFalse(board.move(StoneColor.WHITE, 0, 0));
        assertTrue(board.move(StoneColor.BLACK, 1, 1));
        assertTrue(board.move(StoneColor.BLACK,2, 2));
        assertTrue(board.move(StoneColor.WHITE,2, 3));
        assertTrue(board.move(StoneColor.WHITE,1, 4));
        assertTrue(board.move(StoneColor.WHITE,0, 3));
        assertTrue(board.move(StoneColor.BLACK,0, 2));
        assertTrue(board.move(StoneColor.BLACK,1, 3));
        assertTrue(board.move(StoneColor.WHITE,1, 2));
        //testing of Deaths
        assertTrue(board.getDeads().size()>0);
        //testing of false moves
        assertFalse(board.move(StoneColor.BLACK,1, 3));
        assertTrue(board.move(StoneColor.BLACK,6, 4));
        assertTrue(board.move(StoneColor.BLACK,5, 5));
        assertTrue(board.move(StoneColor.BLACK,6, 6));
        assertTrue(board.move(StoneColor.BLACK,7, 5));
        assertFalse(board.move(StoneColor.WHITE,6,5));
    }
/**
     * Test of move method, of class Board.
     */
Test of move method, of class Board.
Test of move method of class Board .
@Test
    public void testMove() {
        assertTrue(board.move(StoneColor.WHITE,0, 0));
        assertFalse(board.move(StoneColor.WHITE, 0, 0));
        assertTrue(board.move(StoneColor.BLACK, 1, 1));
        assertTrue(board.move(StoneColor.BLACK,2, 2));
        assertTrue(board.move(StoneColor.WHITE,2, 3));
        assertTrue(board.move(StoneColor.WHITE,1, 4));
        assertTrue(board.move(StoneColor.WHITE,0, 3));
        assertTrue(board.move(StoneColor.BLACK,0, 2));
        assertTrue(board.move(StoneColor.BLACK,1, 3));
        assertTrue(board.move(StoneColor.WHITE,1, 2));
        assertTrue(board.getDeads().size()>0);
        assertFalse(board.move(StoneColor.BLACK,1, 3));
        assertTrue(board.move(StoneColor.BLACK,6, 4));
        assertTrue(board.move(StoneColor.BLACK,5, 5));
        assertTrue(board.move(StoneColor.BLACK,6, 6));
        assertTrue(board.move(StoneColor.BLACK,7, 5));
        assertFalse(board.move(StoneColor.WHITE,6,5));
    }
@ Test public void testMove ( ) { assertTrue ( board . move ( StoneColor . WHITE , 0 , 0 ) ) ; assertFalse ( board . move ( StoneColor . WHITE , 0 , 0 ) ) ; assertTrue ( board . move ( StoneColor . BLACK , 1 , 1 ) ) ; assertTrue ( board . move ( StoneColor . BLACK , 2 , 2 ) ) ; assertTrue ( board . move ( StoneColor . WHITE , 2 , 3 ) ) ; assertTrue ( board . move ( StoneColor . WHITE , 1 , 4 ) ) ; assertTrue ( board . move ( StoneColor . WHITE , 0 , 3 ) ) ; assertTrue ( board . move ( StoneColor . BLACK , 0 , 2 ) ) ; assertTrue ( board . move ( StoneColor . BLACK , 1 , 3 ) ) ; assertTrue ( board . move ( StoneColor . WHITE , 1 , 2 ) ) ; assertTrue ( board . getDeads ( ) . size ( ) > 0 ) ; assertFalse ( board . move ( StoneColor . BLACK , 1 , 3 ) ) ; assertTrue ( board . move ( StoneColor . BLACK , 6 , 4 ) ) ; assertTrue ( board . move ( StoneColor . BLACK , 5 , 5 ) ) ; assertTrue ( board . move ( StoneColor . BLACK , 6 , 6 ) ) ; assertTrue ( board . move ( StoneColor . BLACK , 7 , 5 ) ) ; assertFalse ( board . move ( StoneColor . WHITE , 6 , 5 ) ) ; }
Test of move method, of class Board.
Test of move method of class Board .
//Testing of KO //testing of Deaths //testing of false moves