@Test public void shouldGetAllForFacility() throws Exception { service.getAllForFacility(1L); verify(repository).getAllForFacility(1L); }
public List<MaintenanceRequest> getAllForFacility(Long facilityId) { return repository.getAllForFacility(facilityId); }
MaintenanceRequestService { public List<MaintenanceRequest> getAllForFacility(Long facilityId) { return repository.getAllForFacility(facilityId); } }
MaintenanceRequestService { public List<MaintenanceRequest> getAllForFacility(Long facilityId) { return repository.getAllForFacility(facilityId); }  }
MaintenanceRequestService { public List<MaintenanceRequest> getAllForFacility(Long facilityId) { return repository.getAllForFacility(facilityId); }  List<MaintenanceRequest> getAll(); List<MaintenanceRequest> getAllForFacility(Long facilityId); List<MaintenanceRequest> getAllForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForUser(Long userId); MaintenanceRequest getById(Long id); void save(MaintenanceRequest request); List<Log> getFullHistory(Long inventoryId); }
MaintenanceRequestService { public List<MaintenanceRequest> getAllForFacility(Long facilityId) { return repository.getAllForFacility(facilityId); }  List<MaintenanceRequest> getAll(); List<MaintenanceRequest> getAllForFacility(Long facilityId); List<MaintenanceRequest> getAllForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForUser(Long userId); MaintenanceRequest getById(Long id); void save(MaintenanceRequest request); List<Log> getFullHistory(Long inventoryId);  }