Search in sources :

Example 21 with WorkItemRepository

use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.

the class GithubWorkitemIntegrationTest method testWorkitemValidity.

@Test
public void testWorkitemValidity() {
    String repoPath = "file://" + System.getProperty("builddir") + "/" + System.getProperty("artifactId") + "-" + System.getProperty("version") + "/repository";
    Map<String, WorkDefinitionImpl> repoResults = new WorkItemRepository().getWorkDefinitions(repoPath, null, System.getProperty("artifactId"));
    assertNotNull(repoResults);
    assertEquals(4, repoResults.size());
    assertTrue(repoResults.containsKey("GithubCreateGist"));
    assertTrue(repoResults.containsKey("GithubForkRepository"));
    assertTrue(repoResults.containsKey("GithubListRepositories"));
    assertTrue(repoResults.containsKey("GithubMergePullRequest"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Aggregations

WorkDefinitionImpl (org.jbpm.process.workitem.WorkDefinitionImpl)21 WorkItemRepository (org.jbpm.process.workitem.WorkItemRepository)21 Test (org.junit.Test)21