Mock method invoke different method

1 visualización (últimos 30 días)
Ricardo Krause
Ricardo Krause el 26 de Mayo de 2020
Editada: per isakson el 5 de Dic. de 2020
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 comentario
Ricardo Krause
Ricardo Krause el 26 de Mayo de 2020
And I don't want use a global test indicator in the production code to bypass this behavior

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Mock Dependencies in Tests en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by