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

Being able to use a comparator on runTest

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9.0
    • 1.1.0
    • None

    Description

      Sometimes using withOutput and runTest is not possible if the .equals method is not the correct way to compare equality. This is especially true for Mapper and Reducers that return doubles or structure with doubles in them, since there is no way to specify a desired error tolerance for the result.

      Being able to specify a Comparator for the key and value types enabled the usage of runTest for these cases.

      Attachments

        1. MRUNIT-180.patch
          20 kB
          Ximo Guanter
        2. MRUNIT-180-2.patch
          20 kB
          Ximo Guanter

        Activity

          People

            edrevo Ximo Guanter
            edrevo Ximo Guanter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: