Examples of EqualsList


Examples of org.camunda.bpm.engine.rest.helper.EqualsList

    list2 = new ArrayList<String>();
  }

  @Test
  public void testListsSame() {
    assertTrue(new EqualsList(list1).matches(list1));
  }
View Full Code Here

Examples of org.camunda.bpm.engine.rest.helper.EqualsList

  @Test
  public void testListsEqual() {
    list1.add("aString");
    list2.add("aString");

    assertTrue(new EqualsList(list1).matches(list2));
    assertTrue(new EqualsList(list2).matches(list1));
  }
View Full Code Here

Examples of org.camunda.bpm.engine.rest.helper.EqualsList

  @Test
  public void testListsNotEqual() {
    list1.add("aString");

    assertFalse(new EqualsList(list1).matches(list2));
    assertFalse(new EqualsList(list2).matches(list1));
  }
View Full Code Here

Examples of org.camunda.bpm.engine.rest.helper.EqualsList

    assertFalse(new EqualsList(list2).matches(list1));
  }

  @Test
  public void testListsNull() {
    assertFalse(new EqualsList(null).matches(list1));
    assertFalse(new EqualsList(list1).matches(null));
    assertTrue(new EqualsList(null).matches(null));
  }
View Full Code Here

Examples of org.camunda.bpm.engine.rest.helper.EqualsList

      .when().post(EXECUTION_LOCAL_VARIABLES_URL);

    Map<String, Object> expectedModifications = new HashMap<String, Object>();
    expectedModifications.put(variableKey, variableValue);
    verify(runtimeServiceMock).updateVariablesLocal(eq(MockProvider.EXAMPLE_EXECUTION_ID), argThat(new EqualsMap(expectedModifications)),
        argThat(new EqualsList(deletions)));
  }
View Full Code Here

Examples of org.camunda.bpm.engine.rest.helper.EqualsList

      .when().post(PROCESS_INSTANCE_VARIABLES_URL);

    Map<String, Object> expectedModifications = new HashMap<String, Object>();
    expectedModifications.put(variableKey, variableValue);
    verify(runtimeServiceMock).updateVariables(eq(MockProvider.EXAMPLE_PROCESS_INSTANCE_ID), argThat(new EqualsMap(expectedModifications)),
        argThat(new EqualsList(deletions)));
  }
View Full Code Here

Examples of org.camunda.bpm.engine.rest.helper.EqualsList

    given().queryParams("candidateGroups", queryParam)
      .header("accept", MediaType.APPLICATION_JSON)
      .expect().statusCode(Status.OK.getStatusCode())
      .when().get(TASK_QUERY_URL);

    verify(mockQuery).taskCandidateGroupIn(argThat(new EqualsList(candidateGroups)));
  }
View Full Code Here

Examples of org.camunda.bpm.engine.rest.helper.EqualsList

    verify(mockQuery).taskUnassigned();
    verify(mockQuery).active();
    verify(mockQuery).suspended();

    verify(mockQuery).taskCandidateGroupIn(argThat(new EqualsList(candidateGroups)));
  }
View Full Code Here

Examples of org.camunda.bpm.engine.rest.helper.EqualsList

      .when().post(SINGLE_TASK_MODIFY_VARIABLES_URL);

    Map<String, Object> expectedModifications = new HashMap<String, Object>();
    expectedModifications.put(variableKey, variableValue);
    verify(taskServiceMock).updateVariablesLocal(eq(EXAMPLE_TASK_ID), argThat(new EqualsMap(expectedModifications)),
        argThat(new EqualsList(deletions)));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.