Skip to content

Commit

Permalink
Add changed json
Browse files Browse the repository at this point in the history
  • Loading branch information
shsahahyland authored and graric committed Nov 27, 2024
1 parent d71baf3 commit a263c64
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 121 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void shouldReturnAllProcessInstancesWithVariables() {
.willReturn(true);
given(securityManager.getAuthenticatedUserId()).willReturn("testuser");

Set<ProcessVariableEntity> variables = createProcessVariables(processInstanceEntity, 8);
Set<ProcessVariableEntity> variables = createProcessVariables(8);
List<String> variableKeys = variables.stream().map(ProcessVariableEntity::getName).collect(Collectors.toList());
Predicate predicate = null;
int pageSize = 30;
Expand Down Expand Up @@ -190,7 +190,7 @@ private ProcessInstanceEntity buildSubprocessInstance(ProcessInstanceEntity pare
return subprocessInstance;
}

private Set<ProcessVariableEntity> createProcessVariables(ProcessInstanceEntity processInstanceEntity, int count) {
private Set<ProcessVariableEntity> createProcessVariables(int count) {
Set<ProcessVariableEntity> variables = new HashSet<>();
for (int i = 0; i < count; i++) {
ProcessVariableEntity variable = new ProcessVariableEntity();
Expand Down
Loading

0 comments on commit a263c64

Please sign in to comment.