@Test public void shouldUpdate() throws Exception { when(equipmentInventoryStatusMapper.getCurrentStatus(inventoryId)).thenReturn(status); repository.update(inventory); verify(mapper).update(inventory); verify(equipmentInventoryStatusMapper).getCurrentStatus(inventoryId); }
public void update(EquipmentInventory inventory){ mapper.update(inventory); updateStatus(inventory); }
EquipmentInventoryRepository { public void update(EquipmentInventory inventory){ mapper.update(inventory); updateStatus(inventory); } }
EquipmentInventoryRepository { public void update(EquipmentInventory inventory){ mapper.update(inventory); updateStatus(inventory); }  }
EquipmentInventoryRepository { public void update(EquipmentInventory inventory){ mapper.update(inventory); updateStatus(inventory); }  List<EquipmentInventory> getFacilityInventory(Long facilityId, Long programId); List<EquipmentInventory> getInventory(Long programId, Long equipmentTypeId, long[] facilityIds, Pagination pagination); Integer getInventoryCount(Long programId, Long equipmentTypeId, long[] facilityIds); EquipmentInventory getInventoryById(Long id); void insert(EquipmentInventory inventory); void update(EquipmentInventory inventory); void updateStatus(EquipmentInventory inventory); String updateNonFunctionalEquipments(); }
EquipmentInventoryRepository { public void update(EquipmentInventory inventory){ mapper.update(inventory); updateStatus(inventory); }  List<EquipmentInventory> getFacilityInventory(Long facilityId, Long programId); List<EquipmentInventory> getInventory(Long programId, Long equipmentTypeId, long[] facilityIds, Pagination pagination); Integer getInventoryCount(Long programId, Long equipmentTypeId, long[] facilityIds); EquipmentInventory getInventoryById(Long id); void insert(EquipmentInventory inventory); void update(EquipmentInventory inventory); void updateStatus(EquipmentInventory inventory); String updateNonFunctionalEquipments(); static Logger logger; }