Skip to content

Commit

Permalink
🚑 Fix: 관련 테스트코드 수정 (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
win-luck committed Nov 17, 2023
1 parent 94b4f66 commit 3556c37
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.diareat.diareat.controller;

import com.diareat.diareat.auth.service.KakaoAuthService;
import com.diareat.diareat.user.controller.UserController;
import com.diareat.diareat.user.domain.BaseNutrition;
import com.diareat.diareat.user.domain.User;
Expand Down Expand Up @@ -48,9 +47,6 @@ class UserControllerTest {
@MockBean
private UserService userService;

@MockBean
private KakaoAuthService kakaoAuthService;

private final Long testUserId = 1L;
private final ObjectMapper mapper = new ObjectMapper();
private final User testUser = User.createUser("test", "test","test", 180, 70, 0, 20, BaseNutrition.createNutrition(2000, 300, 80, 80));
Expand Down Expand Up @@ -230,7 +226,7 @@ void searchUser() throws Exception {

// When & Then
mockMvc.perform( MockMvcRequestBuilders
.get("/api/user/search")
.post("/api/user/search")
.contentType(MediaType.APPLICATION_JSON)
.content(json)
.accept(MediaType.APPLICATION_JSON))
Expand All @@ -253,7 +249,7 @@ void searchUserFail() throws Exception {

// When & Then
mockMvc.perform( MockMvcRequestBuilders
.get("/api/user/search")
.post("/api/user/search")
.contentType(MediaType.APPLICATION_JSON)
.content(json)
.accept(MediaType.APPLICATION_JSON))
Expand Down

0 comments on commit 3556c37

Please sign in to comment.