fix test
This commit is contained in:
parent
4c4fcc884d
commit
3c4f5089ef
@ -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"))
|
||||
|
Reference in New Issue
Block a user