Hey guys, if I have a method that creates an API c...
# getting-started
a
Hey guys, if I have a method that creates an API client, and then I called this method which returns this client and called an internal method which makes the actual call in another wrapper (method2) how I can test the
method2
? I will mock client which is returned using mockito, but how I can write a code, which will expect a call to an internal method of this mock client and return a fake response ? I am using Mockito and Junit5 thanks in advance