hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7537) Add PowerMock for the development of better tests
Date Tue, 23 Aug 2011 19:44:28 GMT

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

Todd Lipcon commented on HADOOP-7537:
-------------------------------------

I think EnvironmentEdge is a better approach, and would prefer to see this used as sparingly
as possible. But I don't feel so strongly as to -1 it. I may -1 other patches in the future
that use powermock, though, when a better design would be possible. Of course, I'm also not
going to +1 it :)

> 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
>             Fix For: 0.23.0
>
>         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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message