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] [Commented] (HADOOP-9122) Add powermock library for writing better unit tests
Date Fri, 29 Sep 2017 16:07:02 GMT

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

Eric Yang commented on HADOOP-9122:

It turns out that commons-io 2.5 is not required as an upgrade.  It was used by my own test
code.  In addition, commons-io 2.5 was a bad release.  Org.apache.commons.io.Java7Support
has been removed from commons-io 2.5, but the complete fix isn't ready until commons-io 2.6
from [IO-514|https://issues.apache.org/jira/browse/IO-514].  Hadoop can not upgrade to commons-io
2.5 because isSymlink method is broken in commons-io 2.5.

The proposed patch on upgrade mockito and powermock which will minimize the changes required
for better unit test cases.

> 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: HADOOP-9122.001.patch, 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