@Test public void shouldGetAllForVendor() throws Exception { service.getAllForVendor(3L); verify(repository).getAllForVendor(3L); }
public List<MaintenanceLog> getAllForVendor(Long vendorId) { return repository.getAllForVendor(vendorId); }
MaintenanceLogService { public List<MaintenanceLog> getAllForVendor(Long vendorId) { return repository.getAllForVendor(vendorId); } }
MaintenanceLogService { public List<MaintenanceLog> getAllForVendor(Long vendorId) { return repository.getAllForVendor(vendorId); }  }
MaintenanceLogService { public List<MaintenanceLog> getAllForVendor(Long vendorId) { return repository.getAllForVendor(vendorId); }  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> getAllForVendor(Long vendorId) { return repository.getAllForVendor(vendorId); }  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);  }