Open
Description
Can someone direct me on how to test the http client, I can't find anything useful on the internet. Example code:
AsyncHttpClient client = new AsyncHttpClient();
client.post("http://www.example.com", someRequestParams, new AsyncHttpResponseHandler()
{
@Override
public void onSuccess(String response) {
System.out.println("Success");
}
@Override
public void onFailure(Throwable t, String error)
{
System.out.println("Failed");
}
});
I would like to be able to test that it makes it into the response handler and confirm that the callback is being made.
Thanks