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