Thanks for your very nice test case :-)  !  -Marshall

On 4/25/2014 4:12 PM, Richard Eckart de Castilho (JIRA) wrote:
>     [ 
> https://issues.apache.org/jira/browse/UIMA-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13981534#comment-13981534
>  ] 
>
> Richard Eckart de Castilho commented on UIMA-3776:
> --------------------------------------------------
>
> Thanks!
>
>> Delegate AEs no longer serialized to XML after resolving imports on aggregate
>> -----------------------------------------------------------------------------
>>
>>                 Key: UIMA-3776
>>                 URL: https://issues.apache.org/jira/browse/UIMA-3776
>>             Project: UIMA
>>          Issue Type: Bug
>>          Components: Core Java Framework
>>            Reporter: Richard Eckart de Castilho
>>            Assignee: Marshall Schor
>>             Fix For: 2.6.0SDK
>>
>>
>> This is a regression in the UIMA SDK 2.6.0 RC 1 and worked in UIMA SDK 2.5.0.
>> * Add a full delegate description to an AAE.
>> * Serialize to XML: delegate description is serialized.
>> * Call resolveImports()
>> * Serialize to XML: delegate description is no longer serialized.
>> {noformat}
>>   public void testNoDelegatesToResolve() throws Exception {
>>     ResourceSpecifierFactory f = UIMAFramework.getResourceSpecifierFactory();
>>     AnalysisEngineDescription outer = f.createAnalysisEngineDescription();
>>     AnalysisEngineDescription inner = f.createAnalysisEngineDescription();
>>     outer.getDelegateAnalysisEngineSpecifiersWithImports().put("inner", 
>> inner);
>>     StringWriter outerXml = new StringWriter();
>>     outer.toXML(outerXml);
>>     
>>     // Resolving the imports removes the inner AE description
>>     outer.resolveImports(UIMAFramework.newDefaultResourceManager());
>>     
>>     StringWriter outerXml2 = new StringWriter();
>>     outer.toXML(outerXml2);
>>     Assert.assertEquals(outerXml.toString(), outerXml2.toString());
>>   }
>> {noformat}
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.2#6252)
>
>

Reply via email to