verify(mockedQuery).disabled();
protected void assertStateQuery(CaseExecutionState... states) { CaseExecutionStateCountMap stateCounts = new CaseExecutionStateCountMap(); if (states != null) { for (CaseExecutionState state : states) { stateCounts.put(state, stateCounts.get(state) + 1); } } assertCount(stateCounts.count(), historicQuery()); assertCount(stateCounts.unfinished(), historicQuery().notEnded()); assertCount(stateCounts.finished(), historicQuery().ended()); assertCount(stateCounts.get(ACTIVE), historicQuery().active()); assertCount(stateCounts.get(AVAILABLE), historicQuery().available()); assertCount(stateCounts.get(COMPLETED), historicQuery().completed()); assertCount(stateCounts.get(DISABLED), historicQuery().disabled()); assertCount(stateCounts.get(ENABLED), historicQuery().enabled()); assertCount(stateCounts.get(TERMINATED), historicQuery().terminated()); }
protected void assertStateQuery(CaseExecutionState... states) { CaseExecutionStateCountMap stateCounts = new CaseExecutionStateCountMap(); if (states != null) { for (CaseExecutionState state : states) { stateCounts.put(state, stateCounts.get(state) + 1); } } assertCount(stateCounts.count(), historicQuery()); assertCount(stateCounts.unfinished(), historicQuery().notEnded()); assertCount(stateCounts.finished(), historicQuery().ended()); assertCount(stateCounts.get(ACTIVE), historicQuery().active()); assertCount(stateCounts.get(AVAILABLE), historicQuery().available()); assertCount(stateCounts.get(COMPLETED), historicQuery().completed()); assertCount(stateCounts.get(DISABLED), historicQuery().disabled()); assertCount(stateCounts.get(ENABLED), historicQuery().enabled()); assertCount(stateCounts.get(TERMINATED), historicQuery().terminated()); }