Mock 화 된 클래스의 중단 점이 작동하지 않는 경우의 조치
개요
테스트를 작성할 때 테스트 대상 클래스의 메소드를 모형화 한 테스트
만들 수 있을까 생각합니다.
그 때 테스트 대상 클래스에 브레이크 포인트를 붙여도,
거기서 멈추지 않는 것에 고민하고 있었습니다만,
대응책이 판명되었으므로 이쪽에 써 보겠습니다.
환경
testng 6.8.8
jmockit 1.7
절차
멈추지 않는 경우
아래와 같이 테스트 대상 클래스에 브레이크 포인트를 붙여 디버그 실행해도, 브레이크 포인트로 멈추지 않습니다.

대응 절차
testng 6.8.8
jmockit 1.7
절차
멈추지 않는 경우
아래와 같이 테스트 대상 클래스에 브레이크 포인트를 붙여 디버그 실행해도, 브레이크 포인트로 멈추지 않습니다.

대응 절차




Reference
이 문제에 관하여(Mock 화 된 클래스의 중단 점이 작동하지 않는 경우의 조치), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/yiitas/items/28b6d09a80a4fd4bc5b5텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)