示例#1
0
 /** Test of the takeDamage method */
 @Test
 public void testTakeDamage() {
   monster.takeDamage(10);
   assertEquals(monster.getHealthPoint(), 20);
 }
示例#2
0
 /** Test of the getHealthPoint method */
 @Test
 public void testGetHealthPoint() {
   assertEquals(monster.getHealthPoint(), 30);
 }