@Test(expected = RepositoryException.class) public void testGetConfigurationByTaskIdNoDataSource() throws RepositoryException { DataSourceWorkflowRepository repo = new DataSourceWorkflowRepository(null); WorkflowTaskConfiguration workflow = repo.getConfigurationByTaskId("1"); assertThat(workflow, notNullValue()); assertThat(workflow.getProperties(), notNullValue()); assertThat(workflow.getProperties().getProperty("test"), notNullValue()); }
@Test public void testGetConfigurationByTaskId() throws RepositoryException { DataSourceWorkflowRepository repo = new DataSourceWorkflowRepository(ds); WorkflowTaskConfiguration workflow = repo.getConfigurationByTaskId("1"); assertThat(workflow, notNullValue()); assertThat(workflow.getProperties(), notNullValue()); assertThat(workflow.getProperties().getProperty("TestProp"), notNullValue()); }