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

Testing uses cas compare function, make this order independent

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.0SDK
    • 2.8.0SDK
    • Core Java Framework
    • None

    Description

      Some tests compare two CASes for (approximate) equality, but the compare requires the items in the CASes be in the same "order". Newer iterator implementations of bag and sets no longer necessarily preserve ordering, so the compare may fail even though the CASes contain the same FeatureStructures. Improve the CAS compare test to permit comparing equal without needing the same ordering.

      Remove extra test class CasComparerViewChange, have its 2 users directly call the compare function.

      Attachments

        Activity

          People

            schor Marshall Schor
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: