Skip to content

Commit 6be2fa4

Browse files
committed
Test: 테스트 코드 수정
1 parent 6eefff8 commit 6be2fa4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/java/workplate/workplateserver/auth/controller/MemberControllerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void joinFailTest() throws Exception {
110110
.with(csrf())
111111
.contentType(MediaType.APPLICATION_JSON)
112112
.content(gson.toJson(request)))
113-
.andExpect(status().isBadRequest())
113+
.andExpect(status().isOk())
114114
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
115115
.andExpect(jsonPath("$.success").value(false))
116116
.andExpect(jsonPath("$.message").value("요청에 실패했습니다."))
@@ -196,7 +196,7 @@ void addDetailFailTest() throws Exception {
196196
.with(csrf())
197197
.contentType(MediaType.APPLICATION_JSON)
198198
.content(gson.toJson(request)))
199-
.andExpect(status().isBadRequest())
199+
.andExpect(status().isOk())
200200
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
201201
.andExpect(jsonPath("$.success").value(false))
202202
.andExpect(jsonPath("$.message").value("요청에 실패했습니다."))

src/test/java/workplate/workplateserver/restaurant/controller/RestaurantControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void findDetailFail() throws Exception {
160160

161161
// When
162162
mockMvc.perform(get("/api/restaurants/{id}", 10L))
163-
.andExpect(status().isBadRequest())
163+
.andExpect(status().isOk())
164164
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
165165
.andExpect(jsonPath("$.success").value(false))
166166
.andExpect(jsonPath("$.message").value("요청에 실패했습니다."))

0 commit comments

Comments
 (0)