Joram Visser
07/09/2019, 10:54 AMfoo and bar in this example.
The code in the snippet is not working. I also tried making use of mockkConstructor() function for the ServiceLocator(), Foo() and Bar(), which also didn’t work.
So my question is; how can I set up the mocks correctly so that I can test MyClass without going out of the class.wbertan
07/09/2019, 11:02 AMMyClass before mocking the ServiceLocator object?Joram Visser
07/09/2019, 11:04 AMJoram Visser
07/09/2019, 11:05 AM