Search in sources :

Example 1 with WorkItemRepository

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"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 2 with WorkItemRepository

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"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 3 with WorkItemRepository

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"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 4 with WorkItemRepository

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"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 5 with WorkItemRepository

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