You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Jan Prach (JIRA)" <ji...@apache.org> on 2011/02/23 14:43:38 UTC

[jira] Updated: (MAPREDUCE-2342) mrunit shall pass Configuration in constructors

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

Jan Prach updated MAPREDUCE-2342:
---------------------------------

    Attachment: MAPREDUCE-2342-1.patch

The patch MAPREDUCE-2342-1 fixes the MockOutputCollector.

It also add constructor with Configuration to TestDriver and its descendants. All the "new Configuration()" in mrunit can now be avoided using user provided configuration.

> mrunit shall pass Configuration in constructors
> -----------------------------------------------
>
>                 Key: MAPREDUCE-2342
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2342
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: contrib/mrunit
>    Affects Versions: 0.20.2, 0.21.0
>            Reporter: Jan Prach
>         Attachments: MAPREDUCE-2342-1.patch
>
>
> MrUnit shall pass Configuration in constructors rather then create a new one.
> For example MockOutputCollector does not get user provided "io.serializations". So one can't test with custom serializers (like AvroWrapper).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira