You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Nick Hill (JIRA)" <de...@uima.apache.org> on 2015/04/10 18:29:14 UTC

[jira] [Commented] (UIMA-4343) Testing uses cas compare function, make this order independent

    [ https://issues.apache.org/jira/browse/UIMA-4343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14489885#comment-14489885 ] 

Nick Hill commented on UIMA-4343:
---------------------------------

I already addressed this in the cas compare test utility which is within the uima-obj code I shared (since I had also run into failing tests due to this), in case you are interested in using that.

> Testing uses cas compare function, make this order independent
> --------------------------------------------------------------
>
>                 Key: UIMA-4343
>                 URL: https://issues.apache.org/jira/browse/UIMA-4343
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>    Affects Versions: 2.7.0SDK
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>            Priority: Minor
>             Fix For: 2.7.1SDK
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)