Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3679

calls to junit Assert::assertEquals invert arguments, causing misleading error messages, other minor improvements.

    Details

    • Type: Test
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      JUnit Assert::assertEquals takes its expected and actual arguments in a particular order, but many unit tests invert them. The error message from a failed assertion can be misleading.

        Attachments

        1. HADOOP-3679.5.patch
          27 kB
          jay vyas
        2. HADOOP-3679.4.patch
          47 kB
          jay vyas
        3. HADOOP-3679.3.patch
          21 kB
          jay vyas
        4. HADOOP-3679.patch
          21 kB
          jay vyas
        5. HADOOP-3679.2.patch
          22 kB
          jay vyas

          Activity

            People

            • Assignee:
              jayunit100 jay vyas
              Reporter:
              chris.douglas Chris Douglas
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: