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"));
}
Aggregations