use of org.jbpm.process.workitem.WorkDefinitionImpl in project jbpm-work-items by kiegroup.
the class WatsonWorkitemIntegrationTest 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("IBMWatsonClassifyImage"));
assertTrue(repoResults.containsKey("IBMWatsonDetectFaces"));
}
use of org.jbpm.process.workitem.WorkDefinitionImpl in project jbpm-work-items by kiegroup.
the class IFTTTWorkitemIntegrationTest 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("IFTTTCall"));
}
use of org.jbpm.process.workitem.WorkDefinitionImpl in project jbpm-work-items by kiegroup.
the class GoogleSheetsWorkitemIntegrationTest 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("GoogleReadSheetValues"));
}
use of org.jbpm.process.workitem.WorkDefinitionImpl in project jbpm-work-items by kiegroup.
the class HostedRepositoryIntegrationTest method testRepositoryValidity.
@Test
public void testRepositoryValidity() throws Exception {
URI uri = toServerURI(connector);
Map<String, WorkDefinitionImpl> repoResults = WorkItemRepository.getWorkDefinitions(uri.toString());
assertNotNull(repoResults);
// update this when new workitems are added
assertEquals(41, repoResults.size());
}
use of org.jbpm.process.workitem.WorkDefinitionImpl in project jbpm-work-items by kiegroup.
the class RSSWorkitemIntegrationTest 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("RSS"));
}
Aggregations