removed test that was not needed
This commit is contained in:
@@ -139,14 +139,15 @@ class EntryControllerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
//we removed this from controller so test is pointless
|
||||||
@WithMockUser
|
// @Test
|
||||||
void deleteEntry_authenticated_returns200() throws Exception {
|
// @WithMockUser
|
||||||
doNothing().when(entryService).deleteEntry("entry-1");
|
// void deleteEntry_authenticated_returns200() throws Exception {
|
||||||
|
// doNothing().when(entryService).deleteEntry("entry-1");
|
||||||
mvc.perform(delete("/api/entries/entry-1"))
|
//
|
||||||
.andExpect(status().isOk());
|
// mvc.perform(delete("/api/entries/entry-1"))
|
||||||
}
|
// .andExpect(status().isOk());
|
||||||
|
// }
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void deleteEntry_unauthenticated_returns401or403() throws Exception {
|
void deleteEntry_unauthenticated_returns401or403() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user