Feasibility of Mocking HttpClient

2011-06-25 Thread Miguel Paraz
Hi, Is it feasible to mock HttpClient, with a mocking framework or with custom implementations of the classes? I would like to unit test my code that uses HttpClient, without going out to the network (even if it's just localhost). Thanks, Miguel

RE: Feasibility of Mocking HttpClient

2011-06-25 Thread KARR, DAVID (ATTSI)
-Original Message- From: Miguel Paraz [mailto:mpa...@gmail.com] Sent: Saturday, June 25, 2011 12:48 AM To: HttpClient User Discussion Subject: Feasibility of Mocking HttpClient Hi, Is it feasible to mock HttpClient, with a mocking framework or with custom implementations of the

Re: connection leak

2011-06-25 Thread feedly team
I think I found the issue. An exception is thrown by EntityUtils.toString(): java.io.UnsupportedEncodingException: at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:52) at java.io.InputStreamReader.init(InputStreamReader.java:83) at

Re: Feasibility of Mocking HttpClient

2011-06-25 Thread sebb
On 25 June 2011 17:34, KARR, DAVID (ATTSI) dk0...@att.com wrote: -Original Message- From: Miguel Paraz [mailto:mpa...@gmail.com] Sent: Saturday, June 25, 2011 12:48 AM To: HttpClient User Discussion Subject: Feasibility of Mocking HttpClient Hi, Is it feasible to mock HttpClient,