Gomoku/test/gomoku/PlateauTest.java
/**
     * Test of getDernierId method, of class Plateau.
     */
Test of getDernierId method, of class Plateau.
Test of getDernierId method of class Plateau .
@Test
    public void testGetDernierId() throws OutOfBoundException, InvalidPlayException {
        System.out.println("getDernierId");
        Plateau instance = new Plateau(1, 2);
        instance.initialiser();
        instance.jouer(new Coup(1, new Position(0, 0)));
        assertEquals(1, instance.getDernierId());
        instance.jouer(new Coup(2, new Position(0, 1)));
        assertEquals(2, instance.getDernierId());
    }
@ Test public void testGetDernierId ( ) throws OutOfBoundException , InvalidPlayException { System . out . println ( "getDernierId" ) ; Plateau instance = new Plateau ( 1 , 2 ) ; instance . initialiser ( ) ; instance . jouer ( new Coup ( 1 , new Position ( 0 , 0 ) ) ) ; assertEquals ( 1 , instance . getDernierId ( ) ) ; instance . jouer ( new Coup ( 2 , new Position ( 0 , 1 ) ) ) ; assertEquals ( 2 , instance . getDernierId ( ) ) ; }
Test of getDernierId method, of class Plateau.
Test of getDernierId method of class Plateau .