private void verifyProcessDefinitionKeyNotInListInvovation() { Map<String, List<String>> parameters = getCompleteProcessDefinitionKeyNotInListQueryParameters(); verify(mockedQuery).processDefinitionKeyNotIn(parameters.get("processDefinitionKeyNotIn")); verify(mockedQuery).list(); }
query.processDefinitionKeyNotIn(processDefinitionKeyNotIn);
query.processDefinitionKeyNotIn(processDefinitionKeyNotIn);
exludeIds.add("unexistingProcessDefinition"); assertEquals(1, historyService.createHistoricProcessInstanceQuery().processDefinitionKeyNotIn(exludeIds).count()); assertEquals(0, historyService.createHistoricProcessInstanceQuery().processDefinitionKey("oneTaskProcess").processDefinitionKeyNotIn(exludeIds).count()); assertEquals(0, historyService.createHistoricProcessInstanceQuery().processDefinitionKeyNotIn(exludeIds).count()); historyService.createHistoricProcessInstanceQuery().processDefinitionKeyNotIn(Arrays.asList("")); fail("Exception expected");
query.processDefinitionKeyNotIn(processDefinitionKeyNotIn);
exludeIds.add("unexistingProcessDefinition"); assertEquals(1, historyService.createHistoricProcessInstanceQuery().processDefinitionKeyNotIn(exludeIds).count()); assertEquals(0, historyService.createHistoricProcessInstanceQuery().processDefinitionKey("oneTaskProcess").processDefinitionKeyNotIn(exludeIds).count()); assertEquals(0, historyService.createHistoricProcessInstanceQuery().processDefinitionKeyNotIn(exludeIds).count()); historyService.createHistoricProcessInstanceQuery().processDefinitionKeyNotIn(Arrays.asList("")); fail("Exception expected");