Uploaded image for project: 'MRUnit'
  1. MRUnit
  2. MRUNIT-199

Mapper.Context and Reducer.Context are not fully mocked

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • None

    Description

      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.

      Attachments

        1. 199.patch
          2 kB
          Lukas Nalezenec

        Activity

          People

            lukas.nalezenec Lukas Nalezenec
            lukas.nalezenec Lukas Nalezenec
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: