mrunit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MRUNIT-199) Mapper.Context and Reducer.Context are not fully mocked
Date Tue, 06 May 2014 21:58:37 GMT

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

Hudson commented on MRUNIT-199:
-------------------------------

FAILURE: Integrated in mrunit-trunk #1119 (See [https://builds.apache.org/job/mrunit-trunk/1119/])
MRUNIT-199 - Mapper.Context and Reducer.Context are not fully mocked (Lukas Nalezenec via
Brock) (brock: rev 802effad8cc3fc5f279b9e99749580feff9ab7f0)
* src/main/java/org/apache/hadoop/mrunit/internal/mapreduce/MockReduceContextWrapper.java
* src/main/java/org/apache/hadoop/mrunit/internal/mapreduce/MockMapContextWrapper.java


> Mapper.Context and Reducer.Context are not fully mocked
> -------------------------------------------------------
>
>                 Key: MRUNIT-199
>                 URL: https://issues.apache.org/jira/browse/MRUNIT-199
>             Project: MRUnit
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Lukas Nalezenec
>            Assignee: Lukas Nalezenec
>             Fix For: 1.1.0
>
>         Attachments: 199.patch
>
>
> Both Context classes are mocked used Mockito but not all behaviour is specified. By default,
Mockito returns null for unspecified calls. This is causing NPE. This change instructs Mockito
to return Mocks, not nulls.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message