Mock method invoke different method

조회 수: 2 (최근 30일)
Ricardo Krause
Ricardo Krause 2020년 5월 26일
편집: per isakson 2020년 12월 5일
Hello,
I want to create a TestCase where a GUI interaction has to be bypassed (external service with own gui).
I imagined that I create a mock object for the called class and when I call the corresponding method, another method without gui interaction should be called in the mock.
I tried to use matlab.mock.actions.Invoke, but I was not able to Invoke a different method at this place.
Does anybody have already experience with such topic?
BR
  댓글 수: 1
Ricardo Krause
Ricardo Krause 2020년 5월 26일
And I don't want use a global test indicator in the production code to bypass this behavior

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Mock Dependencies in Tests에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by