jago-server/src/test/java/jago/server/models/HumanPlayerTest.java
@Test
	public void testforfeit() {
		player.forfeit("aa");
		verify(out, times(1)).println("f aa");
		player.forfeit(-10);
		verify(out, times(1)).println("f Wow you have only lost by " + 10 + " points...");
		player.forfeit(10);
		verify(out, times(1)).println("f Congrats " + 10 + " points is consider a lot... in Chine");
		player.forfeit(-999);
		verify(out, times(1)).println("f Could you be bigger losser?");
		player.forfeit(999);
		verify(out, times(1)).println("f You won by fault, the only way you know how");
	}
/**
	 * Test of forfeit method, of class HumanPlayer.
	 */
Test of forfeit method, of class HumanPlayer.
Test of forfeit method of class HumanPlayer .
@Test
	public void testforfeit() {
		player.forfeit("aa");
		verify(out, times(1)).println("f aa");
		player.forfeit(-10);
		verify(out, times(1)).println("f Wow you have only lost by " + 10 + " points...");
		player.forfeit(10);
		verify(out, times(1)).println("f Congrats " + 10 + " points is consider a lot... in Chine");
		player.forfeit(-999);
		verify(out, times(1)).println("f Could you be bigger losser?");
		player.forfeit(999);
		verify(out, times(1)).println("f You won by fault, the only way you know how");
	}
@ Test public void testforfeit ( ) { player . forfeit ( "aa" ) ; verify ( out , times ( 1 ) ) . println ( "f aa" ) ; player . forfeit ( - 10 ) ; verify ( out , times ( 1 ) ) . println ( "f Wow you have only lost by " + 10 + " points..." ) ; player . forfeit ( 10 ) ; verify ( out , times ( 1 ) ) . println ( "f Congrats " + 10 + " points is consider a lot... in Chine" ) ; player . forfeit ( - 999 ) ; verify ( out , times ( 1 ) ) . println ( "f Could you be bigger losser?" ) ; player . forfeit ( 999 ) ; verify ( out , times ( 1 ) ) . println ( "f You won by fault, the only way you know how" ) ; }
Test of forfeit method, of class HumanPlayer.
Test of forfeit method of class HumanPlayer .