hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Yang (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (HADOOP-9122) Add powermock library for writing better unit tests
Date Thu, 28 Sep 2017 21:26:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-9122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Eric Yang reopened HADOOP-9122:
      Assignee: Eric Yang  (was: Radim Kolar)

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.

> Add powermock library for writing better unit tests
> ---------------------------------------------------
>                 Key: HADOOP-9122
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9122
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Radim Kolar
>            Assignee: Eric Yang
>            Priority: Critical
>         Attachments: powermock.txt
> This library is extension of mockito and easymock libraries. It allows testing of private
methods, private variables and other otherwise untestable stuff.
> http://code.google.com/p/powermock/

This message was sent by Atlassian JIRA

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

View raw message