File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/test/java/workplate/workplateserver Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ("요청에 실패했습니다." ))
Original file line number Diff line number Diff 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 ("요청에 실패했습니다." ))
You can’t perform that action at this time.
0 commit comments