jago-server/src/test/java/jago/server/models/GameTest.java
@Test
    public void testchangeState()
    {
        myGame.changeState();
        LinkedList<int[]> list=new LinkedList<>();
        myGame.changeState(list);
        verify(player1, times(1)).changeState();
        verify(player1, times(1)).changeState(list);
        verify(player2, times(1)).changeState();
        verify(player2, times(1)).changeState(list);
    }
/**
     * Test of changeState method, of class GameTest.
     */
Test of changeState method, of class GameTest.
Test of changeState method of class GameTest .
@Test
    public void testchangeState()
    {
        myGame.changeState();
        LinkedList<int[]> list=new LinkedList<>();
        myGame.changeState(list);
        verify(player1, times(1)).changeState();
        verify(player1, times(1)).changeState(list);
        verify(player2, times(1)).changeState();
        verify(player2, times(1)).changeState(list);
    }
@ Test public void testchangeState ( ) { myGame . changeState ( ) ; LinkedList < int [ ] > list = new LinkedList < > ( ) ; myGame . changeState ( list ) ; verify ( player1 , times ( 1 ) ) . changeState ( ) ; verify ( player1 , times ( 1 ) ) . changeState ( list ) ; verify ( player2 , times ( 1 ) ) . changeState ( ) ; verify ( player2 , times ( 1 ) ) . changeState ( list ) ; }
Test of changeState method, of class GameTest.
Test of changeState method of class GameTest .