removed test that was not needed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user