From 3c4f5089efdfbf64972267d0a4482cafed87309a Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 1 Jun 2024 18:18:41 +0100 Subject: [PATCH] fix test --- .../java/cc/fascinated/backend/controller/IndexController.java | 2 -- src/test/java/cc/fascinated/backend/PasteControllerTests.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/cc/fascinated/backend/controller/IndexController.java b/src/main/java/cc/fascinated/backend/controller/IndexController.java index 817297e..6cdae45 100644 --- a/src/main/java/cc/fascinated/backend/controller/IndexController.java +++ b/src/main/java/cc/fascinated/backend/controller/IndexController.java @@ -3,13 +3,11 @@ package cc.fascinated.backend.controller; import cc.fascinated.backend.model.Paste; import cc.fascinated.backend.service.PasteService; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; /** * @author Fascinated (fascinated7) diff --git a/src/test/java/cc/fascinated/backend/PasteControllerTests.java b/src/test/java/cc/fascinated/backend/PasteControllerTests.java index d20a17c..4a0bbcb 100644 --- a/src/test/java/cc/fascinated/backend/PasteControllerTests.java +++ b/src/test/java/cc/fascinated/backend/PasteControllerTests.java @@ -20,7 +20,7 @@ class PasteControllerTests { @Test public void ensureUploadSuccess() throws Exception { - ResultActions result = mockMvc.perform(post("/upload") + ResultActions result = mockMvc.perform(post("/api/upload") .accept(MediaType.APPLICATION_JSON) .contentType(MediaType.TEXT_PLAIN) .content("joe"))