jago-server/src/test/java/jago/server/board/BoardTest.java
@Test
    public void testOwners()
    {
        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));
        board.setOwners();
        assertTrue(board.board[6][5].owner==StoneColor.BLACK);
    }
/**
     * Test of setOwners method, of class Board.
     */
Test of setOwners method, of class Board.
Test of setOwners method of class Board .
@Test
    public void testOwners()
    {
        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));
        board.setOwners();
        assertTrue(board.board[6][5].owner==StoneColor.BLACK);
    }
@ Test public void testOwners ( ) { 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 ) ) ; board . setOwners ( ) ; assertTrue ( board . board [ 6 ] [ 5 ] . owner == StoneColor . BLACK ) ; }
Test of setOwners method, of class Board.
Test of setOwners method of class Board .