use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.
the class EthereumWorkitemIntegrationTest 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(6, repoResults.size());
assertTrue(repoResults.containsKey("EthereumGetBalance"));
assertTrue(repoResults.containsKey("EthereumSendEther"));
assertTrue(repoResults.containsKey("EthereumQueryExistingContract"));
assertTrue(repoResults.containsKey("EthereumTransactExistingContract"));
assertTrue(repoResults.containsKey("EthereumDeployContract"));
assertTrue(repoResults.containsKey("EthereumObserveContractEvent"));
}
use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.
the class ExecWorkitemIntegrationTest 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("Exec"));
}
use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.
the class ArchiveWorkitemIntegrationTest method testWorkitemValidity.
@Test
public void testWorkitemValidity() {
String repoPath = "file://" + System.getProperty("builddir") + "/" + System.getProperty("artifactId") + "-" + System.getProperty("version") + "/repository";
System.out.println(System.getProperty("builddir"));
System.out.println(System.getProperty("artifactId"));
System.out.println(System.getProperty("version"));
Map<String, WorkDefinitionImpl> repoResults = new WorkItemRepository().getWorkDefinitions(repoPath, null, System.getProperty("artifactId"));
assertNotNull(repoResults);
assertEquals(1, repoResults.size());
assertTrue(repoResults.containsKey("Archive"));
}
use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.
the class DropboxWorkitemIntegrationTest 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("DropboxDownloadFile"));
assertTrue(repoResults.containsKey("DropboxUploadFile"));
}
use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.
the class FTPUploadWorkitemIntegrationTest 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("FTP"));
}
Aggregations