You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mrunit.apache.org by "Lukas Nalezenec (JIRA)" <ji...@apache.org> on 2014/02/17 12:19:19 UTC

[jira] [Updated] (MRUNIT-199) Mapper.Context and Reducer.Context are not fully mocked

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

Lukas Nalezenec updated MRUNIT-199:
-----------------------------------

    Attachment: 199.patch

> 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 nuls.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)