@Test public void testUse() { final Inventory inventory = mock(Inventory.class); final Character character = mock(Character.class); when(character.getInventory()).thenReturn(inventory); bottle1.use(character); bottle2.use(character); verifyZeroInteractions(character); }
@Override public void use(Character character) { }
EmptyBottle extends AbstractItem { @Override public void use(Character character) { } }
EmptyBottle extends AbstractItem { @Override public void use(Character character) { } EmptyBottle(RefillableStatModifyingItemProperties properties, int amount); }
EmptyBottle extends AbstractItem { @Override public void use(Character character) { } EmptyBottle(RefillableStatModifyingItemProperties properties, int amount); @Override Item clone(); @Override void use(Character character); }
EmptyBottle extends AbstractItem { @Override public void use(Character character) { } EmptyBottle(RefillableStatModifyingItemProperties properties, int amount); @Override Item clone(); @Override void use(Character character);  }