@Test public void testGetWorkflowInstanceMetadata2() throws Exception { WorkflowInstance wf = (WorkflowInstance) fmc.getFirstPage().getPageWorkflows().get(0); assertThat(wf, is(not(Matchers.nullValue()))); Metadata meta = fmc.getWorkflowInstanceMetadata(wf.getId()); assertNotNull(meta); }
@Test public void testGetPages() throws Exception { Thread.sleep(3000); WorkflowInstancePage page = fmc.getFirstPage(); assertNotNull(page); WorkflowInstancePage lastpage = fmc.getLastPage(); assertNotNull(lastpage); WorkflowInstancePage nextpage = fmc.getNextPage(page); assertNotNull(nextpage); WorkflowInstancePage prevpage = fmc.getPrevPage(nextpage); assertNotNull(prevpage); }