jago-server/src/test/java/jago/server/models/GameTest.java
@Test
   public void testRest()
    {
        myGame.forfeit();
        myGame.rematch();
        myGame.error();
        verify(player1, times(1)).forfeit("These pretzels are making me thirsty");
        verify(player2, times(1)).forfeit("These pretzels are making me thirsty");
    }
/**
     * Test of rest method, of class GameTest.
     */
Test of rest method, of class GameTest.
Test of rest method of class GameTest .
@Test
   public void testRest()
    {
        myGame.forfeit();
        myGame.rematch();
        myGame.error();
        verify(player1, times(1)).forfeit("These pretzels are making me thirsty");
        verify(player2, times(1)).forfeit("These pretzels are making me thirsty");
    }
@ Test public void testRest ( ) { myGame . forfeit ( ) ; myGame . rematch ( ) ; myGame . error ( ) ; verify ( player1 , times ( 1 ) ) . forfeit ( "These pretzels are making me thirsty" ) ; verify ( player2 , times ( 1 ) ) . forfeit ( "These pretzels are making me thirsty" ) ; }
Test of rest method, of class GameTest.
Test of rest method of class GameTest .