@Test public void testQueryBySuspendedAsPost() { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("suspended", true); given() .contentType(POST_JSON_CONTENT_TYPE) .body(parameters) .then() .expect() .statusCode(Status.OK.getStatusCode()) .when() .post(HISTORIC_PROCESS_INSTANCE_RESOURCE_URL); verify(mockedQuery).suspended(); }
@Test public void testQueryBySuspended() { given() .queryParam("suspended", true) .then() .expect() .statusCode(Status.OK.getStatusCode()) .when() .get(HISTORIC_PROCESS_INSTANCE_RESOURCE_URL); verify(mockedQuery).suspended(); }
assertEquals(2, processEngineRule.getHistoryService().createHistoricProcessInstanceQuery().suspended().count());
assertEquals(2, processEngineRule.getHistoryService().createHistoricProcessInstanceQuery().suspended().count());