Examples of EqualsMap


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

    given().contentType(POST_JSON_CONTENT_TYPE).body(messageParameters).pathParam("name", EXAMPLE_ENGINE_NAME)
      .then().expect().statusCode(Status.NO_CONTENT.getStatusCode())
      .when().post(MESSAGE_URL);

    verify(mockRuntimeService).createMessageCorrelation(eq(messageName));
    verify(mockMessageCorrelationBuilder).setVariables(argThat(new EqualsMap(null)));
    verify(mockMessageCorrelationBuilder).processInstanceBusinessKey(eq((String) null));
    verifyZeroInteractions(processEngine);
  }
View Full Code Here

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

    map2 = new HashMap<String, Object>();
  }

  @Test
  public void testMapsSame() {
    assertTrue(new EqualsMap(map1).matches(map1));
  }
View Full Code Here

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

  @Test
  public void testMapsEqual() {
    map1.put("aKey", "aValue");
    map2.put("aKey", "aValue");

    assertTrue(new EqualsMap(map1).matches(map2));
    assertTrue(new EqualsMap(map2).matches(map1));
  }
View Full Code Here

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

  @Test
  public void testMapsNotEqual() {
    map1.put("aKey", "aValue");

    assertFalse(new EqualsMap(map1).matches(map2));
    assertFalse(new EqualsMap(map2).matches(map1));
  }
View Full Code Here

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

    assertFalse(new EqualsMap(map2).matches(map1));
  }

  @Test
  public void testMapsNull() {
    assertFalse(new EqualsMap(null).matches(map1));
    assertFalse(new EqualsMap(map1).matches(null));
    assertTrue(new EqualsMap(null).matches(null));
  }
View Full Code Here

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

    Map<String, Object> expectedVariables = new HashMap<String, Object>();
    expectedVariables.put("aVariable", "aStringValue");
    expectedVariables.put("anotherVariable", 42);
    expectedVariables.put("aThirdValue", Boolean.TRUE);

    verify(formServiceMock).submitStartForm(eq(MockProvider.EXAMPLE_PROCESS_DEFINITION_ID), argThat(new EqualsMap(expectedVariables)));
  }
View Full Code Here

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

    Map<String, Object> expectedVariables = new HashMap<String, Object>();
    expectedVariables.put("aVariable", "aStringValue");
    expectedVariables.put("anotherVariable", 42);
    expectedVariables.put("aThirdValue", Boolean.TRUE);

    verify(formServiceMock).submitStartForm(eq(MockProvider.EXAMPLE_PROCESS_DEFINITION_ID), eq("myBusinessKey"), argThat(new EqualsMap(expectedVariables)));
  }
View Full Code Here

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

    Map<String, Object> expectedParameters = new HashMap<String, Object>();
    expectedParameters.put("aBoolean", Boolean.TRUE);
    expectedParameters.put("aString", "aStringVariableValue");
    expectedParameters.put("anInteger", 42);

    verify(runtimeServiceMock).startProcessInstanceById(eq(MockProvider.EXAMPLE_PROCESS_DEFINITION_ID), isNull(String.class), isNull(String.class), argThat(new EqualsMap(expectedParameters)));

  }
View Full Code Here

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

    Map<String, Object> expectedParameters = new HashMap<String, Object>();
    expectedParameters.put("aBoolean", Boolean.TRUE);
    expectedParameters.put("aString", "aStringVariableValue");
    expectedParameters.put("anInteger", 42);

    verify(runtimeServiceMock).startProcessInstanceById(eq(MockProvider.EXAMPLE_PROCESS_DEFINITION_ID), eq("myBusinessKey"), isNull(String.class), argThat(new EqualsMap(expectedParameters)));

  }
View Full Code Here

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

    Map<String, Object> expectedVariables = new HashMap<String, Object>();
    expectedVariables.put("aVariable", "aStringValue");
    expectedVariables.put("anotherVariable", 42);
    expectedVariables.put("aThirdValue", Boolean.TRUE);

    verify(formServiceMock).submitStartForm(eq(MockProvider.EXAMPLE_PROCESS_DEFINITION_ID), argThat(new EqualsMap(expectedVariables)));
  }
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.