fix test
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m19s
Publish Docker Image / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 58s

This commit is contained in:
Lee 2024-06-01 18:18:41 +01:00
parent 4c4fcc884d
commit 3c4f5089ef
2 changed files with 1 additions and 3 deletions

@ -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)

@ -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"))