@Test public void testSword() throws Exception { final Sword sword = spy(new Sword(mock(FlyingEnchantment.class))); testBasicWeaponActions(sword); }
public Sword(Enchantment enchantment) { this.enchantment = enchantment; }
Sword implements Weapon { public Sword(Enchantment enchantment) { this.enchantment = enchantment; } }
Sword implements Weapon { public Sword(Enchantment enchantment) { this.enchantment = enchantment; } Sword(Enchantment enchantment); }
Sword implements Weapon { public Sword(Enchantment enchantment) { this.enchantment = enchantment; } Sword(Enchantment enchantment); @Override void wield(); @Override void swing(); @Override void unwield(); @Override Enchantment getEnchantment(); }
Sword implements Weapon { public Sword(Enchantment enchantment) { this.enchantment = enchantment; } Sword(Enchantment enchantment); @Override void wield(); @Override void swing(); @Override void unwield(); @Override Enchantment getEnchantment();  }