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

OZG-6897 clean up test

parent 55f65003
Branches
Tags
No related merge requests found
...@@ -591,7 +591,7 @@ class UserRepositoryITCase { ...@@ -591,7 +591,7 @@ class UserRepositoryITCase {
.clearOrganisationsEinheitIds() .clearOrganisationsEinheitIds()
.organisationsEinheitId(ORGANISATIONSEINHEIT_ID_2) .organisationsEinheitId(ORGANISATIONSEINHEIT_ID_2)
.build(); .build();
private final User user4 = UserTestFactory.createBuilder() private final User deletedUser = UserTestFactory.createBuilder()
.id(null) .id(null)
.clearOrganisationsEinheitIds() .clearOrganisationsEinheitIds()
.organisationsEinheitId(ORGANISATIONSEINHEIT_ID_1) .organisationsEinheitId(ORGANISATIONSEINHEIT_ID_1)
...@@ -601,10 +601,7 @@ class UserRepositoryITCase { ...@@ -601,10 +601,7 @@ class UserRepositoryITCase {
@BeforeEach @BeforeEach
void init() { void init() {
repository.deleteAll(); repository.deleteAll();
repository.persist(user1); repository.persist(user1, user2, user3, deletedUser);
repository.persist(user2);
repository.persist(user3);
repository.persist(user4);
} }
@Test @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment