Published on InterSystems Developer Community (https://community.intersystems.com)

Home > UnitTest - Asserting method has been called

Question
Adam Eborn · Jul 9, 2021

UnitTest - Asserting method has been called

Is there a method I can utilise to check if a particular method has been called and perhaps log the args it was called with?

We are currently trying to expand out Cache Unit Testing processes and were wondering if there is an existing method that would capture this or how  such a method could be structured.

Thanks
Adam

#Testing #Caché
Product version: Caché 2018.1

Source URL:https://community.intersystems.com/post/unittest-asserting-method-has-been-called