Esempio n. 1
0
 @Test
 public void testShield() {
   s1 = EquipmentFactory.createShield(s1, 50);
   s1.parry(s2.strike());
   assertEquals(150, s1.getHealth());
 }
Esempio n. 2
0
  @Test
  public void testParry() {
    s1.parry(s2.strike());

    assertEquals(150 - 25, s1.getHealth());
  }
Esempio n. 3
0
 @Test
 public void testSword() {
   s2 = EquipmentFactory.createSword(s2, 175);
   assertEquals(200, s2.strike());
 }
Esempio n. 4
0
 @Test
 public void testStrike() {
   assertEquals(25, s2.strike());
 }