コード例 #1
0
  @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());
  }
コード例 #2
0
  @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());
  }