@Test public void testUse() { final Character character = mock(Character.class); weapon1.use(character); weapon2.use(character); verifyZeroInteractions(character); }
@Override public void use(Character character) { }
RangedWeapon extends Weapon { @Override public void use(Character character) { } }
RangedWeapon extends Weapon { @Override public void use(Character character) { } RangedWeapon(RangedWeaponProperties properties, int amount); }
RangedWeapon extends Weapon { @Override public void use(Character character) { } RangedWeapon(RangedWeaponProperties properties, int amount); @Override Item clone(); @Override void use(Character character); @Override int getDamage(); boolean getNeedsAmmunition(); }
RangedWeapon extends Weapon { @Override public void use(Character character) { } RangedWeapon(RangedWeaponProperties properties, int amount); @Override Item clone(); @Override void use(Character character); @Override int getDamage(); boolean getNeedsAmmunition();  }