jsonPath 문법 활용하기
문법 확인하기 아주 좋은 사이트
http://jsonpath.herokuapp.com/?path=$..book[2]
https://github.com/json-path/JsonPath
공식 문법 자료를 참고하였슴
https://minkukjo.github.io/framework/2020/06/28/JUnit-23/
위 사이트랑 똑같은 문제때문에 시간 오지게 날림
test 결과 출력할 때 한글이 안나와서
@BeforeEach
fun setUp() {
mockMvc = MockMvcBuilders
.webAppContextSetup(ctx)
.addFilters<DefaultMockMvcBuilder>(CharacterEncodingFilter("UTF-8", true))
.build()
}
위 코드 추가하니깐 잘 나온다