Skip to content

Commit

Permalink
Add changed json
Browse files Browse the repository at this point in the history
  • Loading branch information
shsahahyland committed Nov 26, 2024
1 parent 92fde16 commit 05f2145
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 109 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 05f2145

Please sign in to comment.