[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870587#action_12870587
 ] 

Joe Campbell commented on HTTPCLIENT-941:
-----------------------------------------

Yeah - As I was doing the conversion I noted that they are syntactically only 
slight variations of one another.  They also follow slightly different mocking 
philosophy:

Mockito by default seems to create a 'Nice' mock

EasyMock by default seems to create a 'Strict' mock

Not entirely sure which one I like better, they both seem to fit the bill.

Thanks Oleg,
    Joe



> Standardize on a common mocking framework (either EasyMock or Mockito)
> ----------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-941
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-941
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: Cache, HttpAuth
>            Reporter: Oleg Kalnichevski
>             Fix For: 4.1 Alpha3
>
>         Attachments: Convert_httpclient_from_Mockito_to_EasyMock_.patch
>
>
> We are currently using EasyMock in the caching module and Mockito in the main 
> module. While Mockito appears to have a somewhat nicer API, the sheer number 
> of test cases based on EasyMock in the caching module makes it much simpler 
> to replace Mockito with EasyMock than the other way around.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to