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

Test case failures following CSVFormat#equals() update

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: