[ 
https://issues.apache.org/jira/browse/HADOOP-7537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16184853#comment-16184853
 ] 

Eric Yang edited comment on HADOOP-7537 at 9/28/17 9:11 PM:
------------------------------------------------------------

Reopening this old issue.  Powermockito is great for creating better unit test 
cases for large scale project that code needs to interact with other code which 
may not be modifiable.  There were some incompatibility issues between Mockito 
and PowerMock in the last couple years.  Mockito 1.9.5 + Powermock 1.5.6, and 
commons-io 2.5 seems to be a reliable combination that works for Hadoop trunk 
code base.



was (Author: eyang):
Reopening this old issue.  Powermockito is great for creating better unit test 
cases.  There were some incompatibility issues between Mockito and PowerMock in 
the last couple years.  Mockito 1.9.5 + Powermock 1.5.6, and commons-io 2.5 
seems to be a reliable combination that works for Hadoop trunk code base.


> Add PowerMock for the development of better tests
> -------------------------------------------------
>
>                 Key: HADOOP-7537
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7537
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 0.23.0
>            Reporter: Kihwal Lee
>            Assignee: Kihwal Lee
>            Priority: Minor
>         Attachments: powermock.patch
>
>
> We already have Mockito, but PowerMock extends its capabilties so that we can 
> mock constructors and static methods. I find that it is extremely difficult, 
> if not impossible, to properly test some of the low-level features without 
> this. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to