From 5c6e9c7f022430ded7a1c6ed854b1c52941d9416 Mon Sep 17 00:00:00 2001 From: Enrique Gonzalez Martinez Date: Mon, 16 Sep 2024 14:33:13 +0200 Subject: [PATCH] fix tests --- .../src/test/java/org/jbpm/bpmn2/IntermediateEventTest.java | 2 +- .../src/test/java/org/jbpm/bpmn2/StandaloneBPMNProcessTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/IntermediateEventTest.java b/jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/IntermediateEventTest.java index fde03f41b8d..2fe839c5a32 100755 --- a/jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/IntermediateEventTest.java +++ b/jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/IntermediateEventTest.java @@ -402,7 +402,7 @@ public void testSignalBetweenProcesses() { KogitoWorkItem workItem = handler.getWorkItem(); assertThat(workItem).isNotNull(); - signalSingleProcessInstance.completeWorkItem(workItem.getStringId(), null, SecurityPolicy.of("user", Collections.emptyList())); + signalSingleProcessInstance.completeWorkItem(workItem.getStringId(), null); org.kie.kogito.process.ProcessInstance throwEventSignalProcessInstance = throwEventSignalProcess.createInstance(throwEventSignalProcess.createModel()); throwEventSignalProcessInstance.start(); diff --git a/jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/StandaloneBPMNProcessTest.java b/jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/StandaloneBPMNProcessTest.java index d22a3f575db..78088212334 100755 --- a/jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/StandaloneBPMNProcessTest.java +++ b/jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/StandaloneBPMNProcessTest.java @@ -766,7 +766,7 @@ public void testReceiveTask() throws Exception { org.kie.kogito.process.ProcessInstance instance = processDefinition.createInstance(model); instance.start(); assertThat(instance.status()).isEqualTo(ProcessInstance.STATE_ACTIVE); - ProcessTestHelper.completeWorkItem(instance, Collections.singletonMap("MessageId", "Hello john!"), "john"); + ProcessTestHelper.completeWorkItem(instance, Collections.singletonMap("Message", "Hello john!"), "john"); assertThat(instance.status()).isEqualTo(org.kie.kogito.process.ProcessInstance.STATE_COMPLETED); }