Swagger (1) 썸네일형 리스트형 61일차 - JSON 테스트, API 엔드 포인트, Swagger JSON 응답 결과 테스트 import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; ... @Test void t001() throws Exception { // When ResultActions resultActions = mvc .perform( ... ) .andDo(print()); // Then resultActions .andExpect(status().is2xxSuccessful()) .andExpect(jsonPath("$.resultCode").value("Success")) // resultCode 값은 "Success"여야 한다. .andExpect(jsonPath("$.data.a.. 이전 1 다음