You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2018/05/29 22:46:00 UTC

[jira] [Updated] (UIMA-5257) uimaFIT/uv3 accomodation

     [ https://issues.apache.org/jira/browse/UIMA-5257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Eckart de Castilho updated UIMA-5257:
---------------------------------------------
    Fix Version/s: 3.0.0uimaFIT

> uimaFIT/uv3 accomodation
> ------------------------
>
>                 Key: UIMA-5257
>                 URL: https://issues.apache.org/jira/browse/UIMA-5257
>             Project: UIMA
>          Issue Type: Improvement
>          Components: uimaFIT
>            Reporter: Marshall Schor
>            Assignee: Richard Eckart de Castilho
>            Priority: Minor
>             Fix For: 3.0.0uimaFIT
>
>
> These changes were needed to make the tests run in uimaFIT.  I think all of these are backward OK with V2.
> CasDumpWriterTest
> The "toString" for FeatureStructures writes the id as well, so that needs to be stripped.  e.g. FS "Foo" is printed as "Foo:17".
> After line 55, insert:
>     // uima v3 writes "Uima-type-name:nnnnn" delete the :nnnnn to make it the same as v2
>     actual = actual.replaceAll("(\\w*)\\:\\d{1,}(\\s)", "$1$2");
> This same fix needs to be applied multiple places.  here are the others:
>  - JCasBuilderTest, after line 69
>  - CasDumpWriterTest (in uimafit-legacy-support)
>  - JCasBuilderTest (in uimafit-legacy-support)
> =================
> in FSUtilTest: there's a compare test for the two styles of Annotation class in V2:  "Annotation" and "AnnotationImpl".  In V3, there's only one style so this variation testing could be skipped.  Better yet, it can be written so it works in V2 and V3, by changing the compare of the feature value's class-name to a constant, to testing that the feature value is an "instanceof" AnnotationImpl (in the 2nd test).  The first test, seeing if the feature value's classname is "org.apache.uima.jcas.tcas.Annotation" is still valid.
> This test happens in two places in FSUtilTest, both need updating.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)