@Test public void shouldGetAllForFacility() throws Exception { repository.getAllForFacility(5L); verify(mapper).getAllForFacility(5L); }
public List<MaintenanceRequest> getAllForFacility(Long facilityId){ return mapper.getAllForFacility(facilityId); }
MaintenanceRequestRepository { public List<MaintenanceRequest> getAllForFacility(Long facilityId){ return mapper.getAllForFacility(facilityId); } }
MaintenanceRequestRepository { public List<MaintenanceRequest> getAllForFacility(Long facilityId){ return mapper.getAllForFacility(facilityId); }  }
MaintenanceRequestRepository { public List<MaintenanceRequest> getAllForFacility(Long facilityId){ return mapper.getAllForFacility(facilityId); }  MaintenanceRequest getById(Long id); List<MaintenanceRequest> getAllForFacility(Long facilityId); List<MaintenanceRequest> getAllForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForUser(Long userId); List<MaintenanceRequest> getAll(); void insert(MaintenanceRequest value); void update(MaintenanceRequest value); List<Log> getFullHistory(Long inventoryId); }
MaintenanceRequestRepository { public List<MaintenanceRequest> getAllForFacility(Long facilityId){ return mapper.getAllForFacility(facilityId); }  MaintenanceRequest getById(Long id); List<MaintenanceRequest> getAllForFacility(Long facilityId); List<MaintenanceRequest> getAllForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForUser(Long userId); List<MaintenanceRequest> getAll(); void insert(MaintenanceRequest value); void update(MaintenanceRequest value); List<Log> getFullHistory(Long inventoryId);  }