示例#1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testPOSTQuerySorting()
        public virtual void testPOSTQuerySorting()
        {
            InOrder inOrder = Mockito.inOrder(mockQuery);

            executeAndVerifyPOSTSorting(OrderingBuilder.create().orderBy("processDefinitionKey").desc().orderBy("lockExpirationTime").asc().Json, Status.OK);

            inOrder.verify(mockQuery).orderByProcessDefinitionKey();
            inOrder.verify(mockQuery).desc();
            inOrder.verify(mockQuery).orderByLockExpirationTime();
            inOrder.verify(mockQuery).asc();
        }
示例#2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testSecondarySortingAsPost()
        public virtual void testSecondarySortingAsPost()
        {
            InOrder inOrder = Mockito.inOrder(mockedQuery);
            IDictionary <string, object> json = new Dictionary <string, object>();

            json["sorting"] = OrderingBuilder.create().orderBy("definitionKey").desc().orderBy("instanceId").asc().Json;
            given().contentType(POST_JSON_CONTENT_TYPE).body(json).header("accept", MediaType.APPLICATION_JSON).then().expect().statusCode(Status.OK.StatusCode).when().post(EXECUTION_QUERY_URL);

            inOrder.verify(mockedQuery).orderByProcessDefinitionKey();
            inOrder.verify(mockedQuery).desc();
            inOrder.verify(mockedQuery).orderByProcessInstanceId();
            inOrder.verify(mockedQuery).asc();
        }
示例#3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testSecondarySortingAsPost()
        public virtual void testSecondarySortingAsPost()
        {
            InOrder inOrder = Mockito.inOrder(mockQuery);
            IDictionary <string, object> json = new Dictionary <string, object>();

            json["sorting"] = OrderingBuilder.create().orderBy("jobRetries").desc().orderBy("jobDueDate").asc().Json;
            given().contentType(POST_JSON_CONTENT_TYPE).body(json).header("accept", MediaType.APPLICATION_JSON).then().expect().statusCode(Status.OK.StatusCode).when().post(JOBS_RESOURCE_URL);

            inOrder.verify(mockQuery).orderByJobRetries();
            inOrder.verify(mockQuery).desc();
            inOrder.verify(mockQuery).orderByJobDuedate();
            inOrder.verify(mockQuery).asc();
        }
示例#4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testSecondarySortingAsPost()
        public virtual void testSecondarySortingAsPost()
        {
            InOrder inOrder = Mockito.inOrder(mockedQuery);
            IDictionary <string, object> json = new Dictionary <string, object>();

            json["sorting"] = OrderingBuilder.create().orderBy("variableName").desc().orderBy("activityInstanceId").asc().Json;
            given().contentType(POST_JSON_CONTENT_TYPE).body(json).header("accept", MediaType.APPLICATION_JSON).then().expect().statusCode(Status.OK.StatusCode).when().post(VARIABLE_INSTANCE_QUERY_URL);

            inOrder.verify(mockedQuery).orderByVariableName();
            inOrder.verify(mockedQuery).desc();
            inOrder.verify(mockedQuery).orderByActivityInstanceId();
            inOrder.verify(mockedQuery).asc();
        }
示例#5
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testSecondarySortingAsPost()
        public virtual void testSecondarySortingAsPost()
        {
            InOrder inOrder = Mockito.inOrder(mockedQuery);
            IDictionary <string, object> json = new Dictionary <string, object>();

            json["sorting"] = OrderingBuilder.create().orderBy("processInstanceId").desc().orderBy("timestamp").asc().Json;
            given().contentType(POST_JSON_CONTENT_TYPE).body(json).header("accept", MediaType.APPLICATION_JSON).then().expect().statusCode(Status.OK.StatusCode).when().post(HISTORIC_EXTERNAL_TASK_LOG_RESOURCE_URL);

            inOrder.verify(mockedQuery).orderByProcessInstanceId();
            inOrder.verify(mockedQuery).desc();
            inOrder.verify(mockedQuery).orderByTimestamp();
            inOrder.verify(mockedQuery).asc();
        }