use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.
the class JavaHandlerWorkitemIntegrationTest 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(2, repoResults.size());
assertTrue(repoResults.containsKey("Java"));
assertTrue(repoResults.containsKey("JavaInvocation"));
}
use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.
the class JiraWorkitemIntegrationTest 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("JiraAddComment"));
assertTrue(repoResults.containsKey("JiraCreateIssue"));
assertTrue(repoResults.containsKey("JiraJqlSearch"));
assertTrue(repoResults.containsKey("JiraResolveIssue"));
}
use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.
the class ParserWorkitemIntegrationTest 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(1, repoResults.size());
assertTrue(repoResults.containsKey("Parser"));
}
use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.
the class TwitterWorkitemIntegrationTest 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(2, repoResults.size());
assertTrue(repoResults.containsKey("TwitterUpdateStatus"));
assertTrue(repoResults.containsKey("TwitterSendDirectMessage"));
}
use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.
the class GoogleCalendarWorkitemIntegrationTest 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("GoogleAddCalendar"));
assertTrue(repoResults.containsKey("GoogleAddEvent"));
assertTrue(repoResults.containsKey("GoogleGetCalendars"));
assertTrue(repoResults.containsKey("GoogleGetEvents"));
}
Aggregations