I am very new to testing and TDD and I decided to use use Retrofit2-Mock for my api mocking needs. The documentation on Mock Retrofit2 is virtually non existent and the only how-to resources that I found is this article from 2015 and this answer from 2016.
In these a BehaviorDelegate class is used which does not implement the mocked api Interface and needs to be wrapped.
Is there a more elegant way to obtain the mock api service?
Or am I missing the whole point and the Retrofit2-Mock tool is not considered to be in the "best practice stack"? Specially since there are so few articles about it