Skip to content
Snippets Groups Projects
Commit 6f25d3fc authored by Lukas Malte Monnerjahn's avatar Lukas Malte Monnerjahn
Browse files

OZG-6897 clean up test

parent cccc52d5
No related branches found
No related tags found
No related merge requests found
...@@ -36,12 +36,7 @@ class GroupRepresentationTestFactory { ...@@ -36,12 +36,7 @@ class GroupRepresentationTestFactory {
} }
public static GroupRepresentation createByPathAndOrganisationEinheitId(String groupPath, String organisationEinheitId) { public static GroupRepresentation createByPathAndOrganisationEinheitId(String groupPath, String organisationEinheitId) {
var groupRepresentation = new GroupRepresentation(); return createByPathAndOrganisationEinheitIds(groupPath, List.of(organisationEinheitId));
groupRepresentation.setName(groupPath);
groupRepresentation.setPath(groupPath);
groupRepresentation.setAttributes(Map.of(UserResourceMapperTest.ORGANISATIONS_EINHEIT_ID_KEY,
List.of(organisationEinheitId)));
return groupRepresentation;
} }
public static GroupRepresentation createByPathAndOrganisationEinheitIds(String groupPath, List<String> organisationEinheitIds) { public static GroupRepresentation createByPathAndOrganisationEinheitIds(String groupPath, List<String> organisationEinheitIds) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment