hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1244) convert unit tests for cache module to use Mockito
Date Sun, 07 Oct 2012 21:20:03 GMT

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

Oleg Kalnichevski commented on HTTPCLIENT-1244:

Joe et al
Switching EasyMock to the 'relaxed' mode would certainly be a reasonable immediate action.
It would great if some one familiar with EasyMock could look into it. However. long term we
should migrate the caching unit  tests to Mockito. 

> convert unit tests for cache module to use Mockito
> --------------------------------------------------
>                 Key: HTTPCLIENT-1244
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1244
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: Cache
>            Reporter: Jon Moore
>              Labels: test
>             Fix For: Future
> Currently the unit tests for the caching module, while comprehensive, use strict mocks
from EasyMock. In many cases, these tests are brittle in ways they shouldn't be. Converting
to Mockito (as the rest of the httpclient codebase does) would potentially help here, as well
as unifying the unit test frameworks used across the codebase.

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

View raw message