@Test public void shouldGetAllForFacility() throws Exception { service.getAllForFacility(3L); verify(repository).getAllForFacility(3L); }
public List<MaintenanceLog> getAllForFacility(Long facilityId) { return repository.getAllForFacility(facilityId); }
MaintenanceLogService { public List<MaintenanceLog> getAllForFacility(Long facilityId) { return repository.getAllForFacility(facilityId); } }
MaintenanceLogService { public List<MaintenanceLog> getAllForFacility(Long facilityId) { return repository.getAllForFacility(facilityId); }  }
MaintenanceLogService { public List<MaintenanceLog> getAllForFacility(Long facilityId) { return repository.getAllForFacility(facilityId); }  List<MaintenanceLog> getAll(); List<MaintenanceLog> getAllForFacility(Long facilityId); List<MaintenanceLog> getAllForVendor(Long vendorId); MaintenanceLog getById(Long id); void save(MaintenanceLog log); void save(MaintenanceRequest maintenanceRequest); }
MaintenanceLogService { public List<MaintenanceLog> getAllForFacility(Long facilityId) { return repository.getAllForFacility(facilityId); }  List<MaintenanceLog> getAll(); List<MaintenanceLog> getAllForFacility(Long facilityId); List<MaintenanceLog> getAllForVendor(Long vendorId); MaintenanceLog getById(Long id); void save(MaintenanceLog log); void save(MaintenanceRequest maintenanceRequest);  }