diff --git a/src/test/java/cmc15/backend/docs/AccountControllerDocsTest.java b/src/test/java/cmc15/backend/docs/AccountControllerDocsTest.java index a2fa9e1..9580715 100644 --- a/src/test/java/cmc15/backend/docs/AccountControllerDocsTest.java +++ b/src/test/java/cmc15/backend/docs/AccountControllerDocsTest.java @@ -242,7 +242,7 @@ protected Object initController() { RestDocumentationResultHandler document = documentHandler("update-nickname", prettyPrint(), prettyPrint(), resource); // when // then - mockMvc.perform(RestDocumentationRequestBuilders.get("/api/register/nickname") + mockMvc.perform(RestDocumentationRequestBuilders.patch("/api/register/nickname") .header("Authorization", "Bearer AccessToken") .content(objectMapper.writeValueAsString(request)) .contentType(APPLICATION_JSON)) diff --git a/src/test/java/cmc15/backend/domain/account/controller/AccountControllerTest.java b/src/test/java/cmc15/backend/domain/account/controller/AccountControllerTest.java index de44666..4d53e10 100644 --- a/src/test/java/cmc15/backend/domain/account/controller/AccountControllerTest.java +++ b/src/test/java/cmc15/backend/domain/account/controller/AccountControllerTest.java @@ -103,7 +103,7 @@ class AccountControllerTest extends ControllerTestSupport { AccountRequest.Nickname request = new AccountRequest.Nickname("불편한 코끼리"); // when // then - mockMvc.perform(MockMvcRequestBuilders.get("/api/register/nickname") + mockMvc.perform(MockMvcRequestBuilders.patch("/api/register/nickname") .header("Authorization", "Bearer AccessToken") .content(objectMapper.writeValueAsString(request)) .contentType(APPLICATION_JSON))