I have the following code which uses HttpClient to do a post request.
Can you please tell tell me what is a good way to test it? Can I
create a mock http server object for the test to run against?

HttpClient cli = getClient();
HttpPost method;

method = new HttpPost(url);
HttpResponse resp = null;
resp = cli.execute(method);

Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to