Mock method invoke different method
2 次查看(过去 30 天)
显示 更早的评论
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
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mock Dependencies in Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!