Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4056

fix JSON tests which do XML compares to use XMLUnit

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.0SDK
    • Fix Version/s: 2.7.0SDK
    • Component/s: Core Java Framework
    • Labels:
      None

      Description

      The JSON tests have a mode where they generate xmi/xml serializations as well, just for extra coverage. THe compare of these against expected can't be a string "equals" because different XML parsers, transformers, etc. do ordering of name-spaces and formatting of empty elements differently. Use instead the XMLUnit package (available from Maven Central - license OK) (thanks to suggestion from Richard Eckart de Castilho), to check for "equality" instead that allows for these differences.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            schor Marshall Schor
            Reporter:
            schor Marshall Schor
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development