Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-244

Test case failures following CSVFormat#equals() update

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The CSVFormat#equals() method was recently updated to take account of additions to the class state. This caused two test failures:

      [ERROR] CSVFormatTest.testHashCodeAndWithIgnoreHeaderCase:523
      [ERROR] CSVFormatTest.testWithHeaderComments:972

      These both assert equality of a format with another derived from it.
      The formats should only be equal if they have the same behaviour.
      This will no longer be the case if the derived format has a different setting.

      The checks need to be changed to assert inequality.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: