Refactored tests for Bridge

This commit is contained in:
Ilkka Seppälä
2017-08-22 22:01:52 +03:00
parent a5ec376089
commit 6f1736d2e6
7 changed files with 46 additions and 114 deletions

View File

@@ -57,4 +57,9 @@ public class Hammer implements Weapon {
LOGGER.info("The hammer is unwielded.");
enchantment.onDeactivate();
}
@Override
public Enchantment getEnchantment() {
return enchantment;
}
}

View File

@@ -57,4 +57,9 @@ public class Sword implements Weapon {
LOGGER.info("The sword is unwielded.");
enchantment.onDeactivate();
}
@Override
public Enchantment getEnchantment() {
return enchantment;
}
}

View File

@@ -34,4 +34,6 @@ public interface Weapon {
void swing();
void unwield();
Enchantment getEnchantment();
}