From 6f25d3fcf63c0e0226fcd267198eb823cea623bb Mon Sep 17 00:00:00 2001 From: Lukas Malte Monnerjahn <lukasmalte.monnerjahn@dataport.de> Date: Tue, 15 Oct 2024 15:34:18 +0200 Subject: [PATCH] OZG-6897 clean up test --- .../de/ozgcloud/user/GroupRepresentationTestFactory.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/user-manager-server/src/test/java/de/ozgcloud/user/GroupRepresentationTestFactory.java b/user-manager-server/src/test/java/de/ozgcloud/user/GroupRepresentationTestFactory.java index 091dd033..617f1246 100644 --- a/user-manager-server/src/test/java/de/ozgcloud/user/GroupRepresentationTestFactory.java +++ b/user-manager-server/src/test/java/de/ozgcloud/user/GroupRepresentationTestFactory.java @@ -36,12 +36,7 @@ class GroupRepresentationTestFactory { } public static GroupRepresentation createByPathAndOrganisationEinheitId(String groupPath, String organisationEinheitId) { - var groupRepresentation = new GroupRepresentation(); - groupRepresentation.setName(groupPath); - groupRepresentation.setPath(groupPath); - groupRepresentation.setAttributes(Map.of(UserResourceMapperTest.ORGANISATIONS_EINHEIT_ID_KEY, - List.of(organisationEinheitId))); - return groupRepresentation; + return createByPathAndOrganisationEinheitIds(groupPath, List.of(organisationEinheitId)); } public static GroupRepresentation createByPathAndOrganisationEinheitIds(String groupPath, List<String> organisationEinheitIds) { -- GitLab