GET /hello 처리, 테스트 코드 작성
- jUnit 디펜던시 추가
- 스프링부트와 AWS로 혼자 구현하는 웹서비스 2장 참고
- No tests found for given includes: filter.includeTestsMatching 발생
롬복을 이용한 GET /hello/dto 처리, 테스트 코드 작성
- 스프링부트와 AWS로 혼자 구현하는 웹서비스 2장 참고
- 테스트 코드 작성시 MockMvcResultMatchers.jsonPath 사용 방식이 바뀌었다.
// 책
...
.andExpect(jsonPath("$.amount", is(amount)));
// 변경 내용
...
.andExpect(jsonPath("$.amount").value(amount));