verify(queryMock).list();
}
@Test
public void testQueryParameter() {
Response response = given()
.queryParam("processDefinitionId", "1")
.queryParam("processDefinitionKey", "6")
.queryParam("processInstanceId", "2")
.queryParam("executionId", "3")
.queryParam("caseDefinitionId", "x")
.queryParam("caseInstanceId", "y")
.queryParam("caseExecutionId", "z")
.queryParam("taskId", "4")
.queryParam("userId", "icke")
.queryParam("operationId", "5")
.queryParam("operationType", OPERATION_TYPE_CLAIM)
.queryParam("entityType", ENTITY_TYPE_TASK)
.queryParam("property", "owner")
.then().expect().statusCode(Status.OK.getStatusCode())
.when().get(USER_OPERATION_LOG_RESOURCE_URL);
verify(queryMock).processDefinitionId("1");
verify(queryMock).processDefinitionKey("6");
verify(queryMock).processInstanceId("2");
verify(queryMock).executionId("3");
verify(queryMock).caseDefinitionId("x");
verify(queryMock).caseInstanceId("y");
verify(queryMock).caseExecutionId("z");
verify(queryMock).taskId("4");
verify(queryMock).userId("icke");
verify(queryMock).operationId("5");
verify(queryMock).operationType(OPERATION_TYPE_CLAIM);
verify(queryMock).entityType(ENTITY_TYPE_TASK);
verify(queryMock).property("owner");
verify(queryMock).list();
String json = response.asString();
UserOperationLogEntryDto actual = from(json).getObject("[0]", UserOperationLogEntryDto.class);
assertEquals(MockProvider.EXAMPLE_USER_OPERATION_LOG_ID, actual.getId());
assertEquals(MockProvider.EXAMPLE_PROCESS_DEFINITION_ID, actual.getProcessDefinitionId());
assertEquals(MockProvider.EXAMPLE_PROCESS_DEFINITION_KEY, actual.getProcessDefinitionKey());
assertEquals(MockProvider.EXAMPLE_PROCESS_INSTANCE_ID, actual.getProcessInstanceId());