@Test public void getWorkflowDefinitionReturnsNullWhenTypeIsNotFound() { initializeService(true, true); assertThat(service.getWorkflowDefinition("notFound"), is(nullValue())); }
public AbstractWorkflowDefinition<?> getWorkflowDefinition(String type) { return workflowDefinitions.get(type); }
WorkflowDefinitionService { public AbstractWorkflowDefinition<?> getWorkflowDefinition(String type) { return workflowDefinitions.get(type); } }
WorkflowDefinitionService { public AbstractWorkflowDefinition<?> getWorkflowDefinition(String type) { return workflowDefinitions.get(type); } @Inject  WorkflowDefinitionService(WorkflowDefinitionDao workflowDefinitionDao, Environment env); }
WorkflowDefinitionService { public AbstractWorkflowDefinition<?> getWorkflowDefinition(String type) { return workflowDefinitions.get(type); } @Inject  WorkflowDefinitionService(WorkflowDefinitionDao workflowDefinitionDao, Environment env); AbstractWorkflowDefinition<?> getWorkflowDefinition(String type); List<AbstractWorkflowDefinition<? extends WorkflowState>> getWorkflowDefinitions(); void postProcessWorkflowDefinitions(); void addWorkflowDefinition(AbstractWorkflowDefinition<? extends WorkflowState> wd); }
WorkflowDefinitionService { public AbstractWorkflowDefinition<?> getWorkflowDefinition(String type) { return workflowDefinitions.get(type); } @Inject  WorkflowDefinitionService(WorkflowDefinitionDao workflowDefinitionDao, Environment env); AbstractWorkflowDefinition<?> getWorkflowDefinition(String type); List<AbstractWorkflowDefinition<? extends WorkflowState>> getWorkflowDefinitions(); void postProcessWorkflowDefinitions(); void addWorkflowDefinition(AbstractWorkflowDefinition<? extends WorkflowState> wd);  }