Skip to content

Commit

Permalink
Apply automatic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shsahahyland committed Dec 2, 2024
1 parent 89084de commit 6746b50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ public Map<String, Set<QueryCloudSubprocessInstance>> groupSubprocesses(Page<Pro
.collect(
Collectors.groupingBy(
ProcessInstanceEntity::getParentId,
Collectors.mapping(
this::getQueryCloudSubprocessInstance,
Collectors.toSet()
)
Collectors.mapping(this::getQueryCloudSubprocessInstance, Collectors.toSet())
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
package org.activiti.cloud.services.query.app.repository;

import static org.junit.jupiter.api.Assertions.*;

import java.util.*;
import org.activiti.cloud.api.process.model.QueryCloudSubprocessInstance;
import org.activiti.cloud.services.query.model.ProcessInstanceEntity;
import org.junit.jupiter.api.BeforeEach;
Expand All @@ -23,10 +26,6 @@
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;

import java.util.*;

import static org.junit.jupiter.api.Assertions.*;

class CustomizedProcessInstanceRepositoryImplTest {

private CustomizedProcessInstanceRepositoryImpl repository;
Expand Down Expand Up @@ -89,17 +88,15 @@ private ProcessInstanceEntity createProcessInstance(String parentId) {

private List<ProcessInstanceEntity> createParentProcessInstances(int count) {
List<ProcessInstanceEntity> instances = new ArrayList<>();
for(int i =0;i<count;i++)
{
for (int i = 0; i < count; i++) {
instances.add(createProcessInstance("1"));
}
return instances;
}

private List<ProcessInstanceEntity> createSubprocessInstances(int count, String parentId) {
List<ProcessInstanceEntity> instances = new ArrayList<>();
for(int i =0;i<count;i++)
{
for (int i = 0; i < count; i++) {
instances.add(createProcessInstance(parentId));
}
return instances;
Expand Down

0 comments on commit 6746b50

Please sign in to comment.