Gomoku/test/gomoku/PlateauTest.java
/**
     * Test of isValidPosition method, of class Plateau.
     */
Test of isValidPosition method, of class Plateau.
Test of isValidPosition method of class Plateau .
@Test
    public void testIsValidPosition() throws OutOfBoundException {
        System.out.println("isValidPosition");
        Plateau instance = new Plateau(5, 5);
        instance.initialiser();
        assertFalse(instance.isValidPosition(-1, 2));
        assertFalse(instance.isValidPosition(2, -1));
        assertFalse(instance.isValidPosition(5, 2));
        assertFalse(instance.isValidPosition(2, 5));
        assertTrue(instance.isValidPosition(0, 0));
        assertTrue(instance.isValidPosition(4, 0));
        assertTrue(instance.isValidPosition(0, 4));
        assertTrue(instance.isValidPosition(4, 4));
    }
@ Test public void testIsValidPosition ( ) throws OutOfBoundException { System . out . println ( "isValidPosition" ) ; Plateau instance = new Plateau ( 5 , 5 ) ; instance . initialiser ( ) ; assertFalse ( instance . isValidPosition ( - 1 , 2 ) ) ; assertFalse ( instance . isValidPosition ( 2 , - 1 ) ) ; assertFalse ( instance . isValidPosition ( 5 , 2 ) ) ; assertFalse ( instance . isValidPosition ( 2 , 5 ) ) ; assertTrue ( instance . isValidPosition ( 0 , 0 ) ) ; assertTrue ( instance . isValidPosition ( 4 , 0 ) ) ; assertTrue ( instance . isValidPosition ( 0 , 4 ) ) ; assertTrue ( instance . isValidPosition ( 4 , 4 ) ) ; }
Test of isValidPosition method, of class Plateau.
Test of isValidPosition method of class Plateau .