You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Richard Barnett (JIRA)" <ji...@apache.org> on 2013/04/04 01:21:20 UTC

[jira] [Created] (HTTPCLIENT-1335) Remove final modifler from all AbstractHttpClient.execute methods

Richard Barnett created HTTPCLIENT-1335:
-------------------------------------------

             Summary: Remove final modifler from all AbstractHttpClient.execute methods
                 Key: HTTPCLIENT-1335
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1335
             Project: HttpComponents HttpClient
          Issue Type: Improvement
          Components: HttpClient
    Affects Versions: 4.2.3
            Reporter: Richard Barnett


Of 8 AbstractHttpClient.execute methods, 4 are declared final & 4 (those with a ResponseHandler parameter) are not.
Remove this modifier as it prevents JMock from mocking these methods.
It also doesn't seem to make sense for half the methods to be final.
(Mocking the HttpClient interface is not appropriate for my tests as I have to call AbstractHttpClient.getCredentialsProvider).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org