You can refactor the onResponseReceived callback as a method in your top
level class and expose it package private.
Then you target it directly in a unittest, mocking both request and
response objects.
On Fri, Sep 23, 2016 at 8:46 AM Jonathan Cook wrote:
> Hello,
>
> I wanted to know if it coul
Hello,
I wanted to know if it could be possible to Mock out the response.getText()
in a callback when using RequestBuilder. This way I can write tests to
simulate the responses etc.
RequestBuilder expRequestBuilder = new RequestBuilder(RequestBuilder.GET,
encodedUrl);
try {