cheese10yun / blog-comment

0 stars 0 forks source link

RestTemplate Mock 기반 테스트 하기 - Yun Blog | 기술 블로그 #26

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

RestTemplate Mock 기반 테스트 하기 - Yun Blog | 기술 블로그

Yun Blog | 기술 블로그

https://cheese10yun.github.io/rest-template-mock-test/

Integerous commented 4 years ago

도움되었습니다. 감사합니다-!!

KKambi commented 3 years ago

저도 외부 API에 요청하는 서비스를 테스트할 때 비슷한 방식으로 하고 있어요! 다만 @AutoConfigureWebClient@RestClientTest 를 사용하고 있네요.

그리고 지금까지 테스트 코드 내에서 객체를 생성해서 응답을 Mocking했었는데, JSON 파일로 할 생각을 왜 못했을까요... 더 편하게 진행할 수 있게 됐어요. 감사합니다!