List<ITask> getSavedSearchServiceTestTasks(final List<Exception> ex) {
List<ITask> tasks = new ArrayList<ITask>();
/* Create Services */
final CacheService cacheService = new CacheService();
/* Create Saved Searches */
createSavedSearches();
/* Save some Feeds first */
saveFeedsHelper();
final SavedSearchService smService = new SavedSearchService();
tasks.add(new TaskAdapter() {
public IStatus run(IProgressMonitor monitor) {
try {
smService.updateSavedSearches(cacheService.getSearchMarks());
smService.stopService();
} catch (Exception e) {
ex.add(e);
}
return Status.OK_STATUS;