Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elguardian committed Sep 16, 2024
1 parent 2562da6 commit 5c6e9c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<IntermediateThrowEventSignalModel> throwEventSignalProcessInstance = throwEventSignalProcess.createInstance(throwEventSignalProcess.createModel());
throwEventSignalProcessInstance.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ public void testReceiveTask() throws Exception {
org.kie.kogito.process.ProcessInstance<ReceiveTaskModel> 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);
}

Expand Down

0 comments on commit 5c6e9c7

Please sign in to comment.