Skip to content

Commit 76135cf

Browse files
committed
👌 FB CR: fix testsetup (clear db before each test)
1 parent a08a97f commit 76135cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

personalization-service/src/test/java/de/muenchen/dbs/personalization/checklist/ChecklistIntegrationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class ChecklistIntegrationTest extends IntegrationTestBase {
5050

5151
@BeforeEach
5252
public void setUp() {
53+
checklistRepository.deleteAll();
5354
final Checklist exampleChecklist = createTestChecklist(null, TOKEN_USER_MAIL, null);
5455
testChecklistId = checklistRepository.save(exampleChecklist).getId();
5556
}
@@ -82,7 +83,7 @@ void givenEmail_thenReturnChecklists() throws Exception {
8283
.with(SecurityMockMvcRequestPostProcessors.jwt().jwt(DEFAULT_JWT)))
8384
.andExpect(status().isOk())
8485
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
85-
.andExpect(jsonPath("$", hasSize(2)));
86+
.andExpect(jsonPath("$", hasSize(1)));
8687
}
8788
}
8889

0 commit comments

Comments
 (0)