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