removed test that was not needed
CI/CD / Backend Unit Tests (push) Successful in 2m14s
CI/CD / Deploy (push) Successful in 2m10s

This commit is contained in:
2026-06-11 14:01:16 +02:00
parent e3529f892c
commit 8404bcafd0
@@ -139,14 +139,15 @@ class EntryControllerTest {
}
@Test
@WithMockUser
void deleteEntry_authenticated_returns200() throws Exception {
doNothing().when(entryService).deleteEntry("entry-1");
mvc.perform(delete("/api/entries/entry-1"))
.andExpect(status().isOk());
}
//we removed this from controller so test is pointless
// @Test
// @WithMockUser
// void deleteEntry_authenticated_returns200() throws Exception {
// doNothing().when(entryService).deleteEntry("entry-1");
//
// mvc.perform(delete("/api/entries/entry-1"))
// .andExpect(status().isOk());
// }
@Test
void deleteEntry_unauthenticated_returns401or403() throws Exception {