PackagedWorkflowRepository implements WorkflowRepository { @Override public List getWorkflows() throws RepositoryException { List<Workflow> workflows = new Vector<Workflow>(); workflows.addAll(this.workflows.values()); return workflows; } PackagedWorkflowRepository(List<File> files); @Override Workflow getWorkflowByName(String workflowName); @Override Workflow getWorkflowById(String workflowId); @Override List getWorkflows(); @Override List getTasksByWorkflowId(String workflowId); @Override List getTasksByWorkflowName(String workflowName); @Override List getWorkflowsForEvent(String eventName); @Override List getConditionsByTaskName(String taskName); @Override List getConditionsByTaskId(String taskId); @Override WorkflowTaskConfiguration getConfigurationByTaskId(String taskId); @Override WorkflowTask getWorkflowTaskById(String taskId); @Override WorkflowCondition getWorkflowConditionById(String conditionId); @Override List getRegisteredEvents(); @Override String addTask(WorkflowTask task); @Override String addWorkflow(Workflow workflow); @Override List<WorkflowCondition> getConditionsByWorkflowId(String workflowId); @Override WorkflowTask getTaskById(String taskId);  }
@Test public void testDetectOuterLevelWorkflows() { assertNotNull(this.repo); List<Workflow> workflows = null; try { workflows = this.repo.getWorkflows(); } catch (Exception e) { fail(e.getMessage()); } boolean foundGranuleMaps = false; for (Workflow w : workflows) { if (w.getId().equals("urn:npp:GranuleMaps")) { foundGranuleMaps = true; } } assertTrue(foundGranuleMaps); }