|
|
|
@ -5,6 +5,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; |
|
|
|
import static org.junit.jupiter.api.Assertions.assertTrue; |
|
|
|
import static org.junit.jupiter.api.Assertions.assertTrue; |
|
|
|
import static org.mockito.Mockito.when; |
|
|
|
import static org.mockito.Mockito.when; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Collections; |
|
|
|
import java.util.Collections; |
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.HashSet; |
|
|
|
@ -45,18 +46,22 @@ class PersonFilterTest { |
|
|
|
GroupDef adminGroup = new GroupDef(); |
|
|
|
GroupDef adminGroup = new GroupDef(); |
|
|
|
adminGroup.setId(1); |
|
|
|
adminGroup.setId(1); |
|
|
|
adminGroup.setName("ADMIN"); |
|
|
|
adminGroup.setName("ADMIN"); |
|
|
|
|
|
|
|
adminGroup.setPersongroups(new ArrayList<>()); |
|
|
|
|
|
|
|
|
|
|
|
GroupDef competitorGroup = new GroupDef(); |
|
|
|
GroupDef competitorGroup = new GroupDef(); |
|
|
|
competitorGroup.setName("Wettkämpfer"); |
|
|
|
competitorGroup.setName("Wettkämpfer"); |
|
|
|
competitorGroup.setId(2); |
|
|
|
competitorGroup.setId(2); |
|
|
|
|
|
|
|
competitorGroup.setPersongroups(new ArrayList<>()); |
|
|
|
|
|
|
|
|
|
|
|
GroupDef participantGroup = new GroupDef(); |
|
|
|
GroupDef participantGroup = new GroupDef(); |
|
|
|
participantGroup.setName("ACTIVE"); |
|
|
|
participantGroup.setName("ACTIVE"); |
|
|
|
participantGroup.setId(3); |
|
|
|
participantGroup.setId(3); |
|
|
|
|
|
|
|
participantGroup.setPersongroups(new ArrayList<>()); |
|
|
|
|
|
|
|
|
|
|
|
GroupDef judgesGroup = new GroupDef(); |
|
|
|
GroupDef judgesGroup = new GroupDef(); |
|
|
|
judgesGroup.setName("Kampfrichter"); |
|
|
|
judgesGroup.setName("Kampfrichter"); |
|
|
|
judgesGroup.setId(4); |
|
|
|
judgesGroup.setId(4); |
|
|
|
|
|
|
|
judgesGroup.setPersongroups(new ArrayList<>()); |
|
|
|
|
|
|
|
|
|
|
|
return Collections.unmodifiableList(Arrays.asList(adminGroup, competitorGroup, participantGroup, judgesGroup)); |
|
|
|
return Collections.unmodifiableList(Arrays.asList(adminGroup, competitorGroup, participantGroup, judgesGroup)); |
|
|
|
|
|
|
|
|
|
|
|
|