@Test public void testGetWorkflowInstanceMetadataActuallyUsingTheXmlRpcWorkflowManagerClient() throws IOException, RepositoryException, XmlRpcException { List<Workflow> workflows = fmc.getWorkflows(); assertThat(workflows, is(not(empty()))); assertNotNull(workflows.get(0).getName()); }
@Test public void testGetWorkflowById() throws RepositoryException, XmlRpcException, IOException { List<Workflow> workflowlist = fmc.getWorkflows(); assertThat(workflowlist, is(not(nullValue()))); assertThat(workflowlist.size(), is(not(0))); Workflow work = fmc.getWorkflowById(workflowlist.get(0).getId()); assertThat(work, is(not(nullValue()))); }