Mock method invoke different method

4 ビュー (過去 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 Center および File ExchangeMock 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