Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Snarr committed Dec 3, 2024
1 parent 1c3daff commit 76fe6c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ public void shouldStoreNewWorkflowEvent() {
WfRunIdModel wfRunId = TestUtil.wfRun(UUID.randomUUID().toString()).getId();
VariableValueModel content = TestUtil.variableValue();
WorkflowEventIdModel eventId = new WorkflowEventIdModel(wfRunId, workflowEventDefId, 1);
WorkflowEventModel eventToStore = new WorkflowEventModel(eventId, content, null);
WorkflowEventModel eventToStore = new WorkflowEventModel(eventId, content, TestUtil.nodeRun());
testProcessorContext.getableManager().put(eventToStore);
testProcessorContext.endExecution();
WorkflowEventModel storedEvent = testProcessorContext.getableManager().get(eventId);
Assertions.assertThat(storedEvent).isNotNull();
Assertions.assertThat(storedEvent.getObjectId().getWfRunId()).isNotNull();
Assertions.assertThat(storedEvent.getObjectId().getWorkflowEventDefId().getName())
.isEqualTo("user-updated");
Assertions.assertThat(storedEvent.getNodeRunId()).isNotNull();
Assertions.assertThat(storedEvent.getContent()).isEqualTo(content);
Assertions.assertThat(storedEvent.getCreatedAt()).isNotNull();
}
Expand Down

0 comments on commit 76fe6c5

Please sign in to comment.