@Test public void shouldUpdate() throws Exception { Equipment equipment = new Equipment(); equipment.setName("Name"); repository.update(equipment); verify(mapper).update(equipment); }
public void update(Equipment equipment){ mapper.update(equipment); }
EquipmentRepository { public void update(Equipment equipment){ mapper.update(equipment); } }
EquipmentRepository { public void update(Equipment equipment){ mapper.update(equipment); }  }
EquipmentRepository { public void update(Equipment equipment){ mapper.update(equipment); }  Equipment getById(Long id); List<Equipment> getAll(); List<Equipment> getAllByType(Long equipmentTypeId); List<Equipment> getByType(Long equipmentTypeId, Pagination page); Integer getCountByType(Long equipmentTypeId); List<EquipmentType> getTypesByProgram(Long programId); void insert(Equipment equipment); void update(Equipment equipment); void remove(Long id); }
EquipmentRepository { public void update(Equipment equipment){ mapper.update(equipment); }  Equipment getById(Long id); List<Equipment> getAll(); List<Equipment> getAllByType(Long equipmentTypeId); List<Equipment> getByType(Long equipmentTypeId, Pagination page); Integer getCountByType(Long equipmentTypeId); List<EquipmentType> getTypesByProgram(Long programId); void insert(Equipment equipment); void update(Equipment equipment); void remove(Long id);  }