Example #1
0
 @Test
 public void testGetType() {
   assertEquals("weapon", weapon.getType());
 }
Example #2
0
 @Test
 public void testGetDamage() {
   assertEquals(1, weapon.getDamage());
 }
Example #3
0
 @Test
 public void testGetDescription() {
   assertEquals("It's a weapon with 1 damage(s)", weapon.getDescription());
 }
Example #4
0
 @Test
 public void testGetName() {
   assertEquals("Wooden sword", weapon.getName());
 }