query.orderByCaseDefinitionId(); } else if (sortBy.equals(SORT_BY_CASE_INST_ID)) { query.orderByCaseInstanceId(); } else if (sortBy.equals(SORT_BY_CASE_EXEC_ID)) { query.orderByCaseExecutionId();
query.orderByCaseDefinitionId(); } else if (sortBy.equals(SORT_BY_CASE_INST_ID)) { query.orderByCaseInstanceId(); } else if (sortBy.equals(SORT_BY_CASE_EXEC_ID)) { query.orderByCaseExecutionId();
inOrder.verify(mockedQuery).orderByCaseInstanceId(); inOrder.verify(mockedQuery).asc(); inOrder.verify(mockedQuery).orderByCaseInstanceId(); inOrder.verify(mockedQuery).desc();
query.orderByCaseDefinitionId(); } else if (sortBy.equals(SORT_BY_CASE_INST_ID)) { query.orderByCaseInstanceId(); } else if (sortBy.equals(SORT_BY_CASE_EXEC_ID)) { query.orderByCaseExecutionId();
assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByTaskFollowUpDate().asc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseDefinitionId().asc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseInstanceId().asc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseExecutionId().asc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByTaskFollowUpDate().desc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseDefinitionId().desc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseInstanceId().desc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseExecutionId().desc().count());
assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByTaskFollowUpDate().asc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseDefinitionId().asc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseInstanceId().asc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseExecutionId().asc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByTaskFollowUpDate().desc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseDefinitionId().desc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseInstanceId().desc().count()); assertEquals(1, historyService.createHistoricTaskInstanceQuery().orderByCaseExecutionId().desc().count());