One of the static methods that I use does two things. It returns some data, but also modifies the argument object passed to it. This updated argument object is then used later in the code.
I use PowerMock to make fun of return behavior.
To determine the second part - updating the input argument, I define the doAnswer method, but it does not work. The method I'm trying to test is as follows.
public void login() throws ConnectionException, AsyncApiException { ConnectorConfig partnerConfig = new ConnectorConfig();
but above, an error appears saying that "An incomplete interrupt was detected." Connector is a third-party class, so I do not control its behavior.
Any suggestions what could be wrong?
source share