primitiveDesc
.setAnnotatorImplementationName("org.apache.uima.analysis_engine.impl.TestAnnotator");
primitiveDesc.getMetaData().setName("Test Primitive TAE");
PrimitiveAnalysisEngine_impl ae = new PrimitiveAnalysisEngine_impl();
ae.initialize(primitiveDesc, null);
ae.collectionProcessComplete(new ProcessTrace_impl());
// test simple aggregate TextAnalysisEngine (again using TestAnnotator class)
AnalysisEngineDescription aggDesc = new AnalysisEngineDescription_impl();
aggDesc.setPrimitive(false);
aggDesc.getMetaData().setName("Test Aggregate TAE");
aggDesc.getDelegateAnalysisEngineSpecifiersWithImports().put("Test", primitiveDesc);
FixedFlow_impl flow = new FixedFlow_impl();
aggDesc.getAnalysisEngineMetaData().setFlowConstraints(flow);
AggregateAnalysisEngine_impl aggAe = new AggregateAnalysisEngine_impl();
aggAe.initialize(aggDesc, null);
aggAe.collectionProcessComplete(new ProcessTrace_impl());
//test that fixedFlow order is used
File descFile = JUnitExtension.getFile("TextAnalysisEngineImplTest/AggregateForCollectionProcessCompleteTest.xml");
AnalysisEngineDescription cpcTestDesc = UIMAFramework.getXMLParser().parseAnalysisEngineDescription(new XMLInputSource(descFile));
AnalysisEngine cpcTestAe = UIMAFramework.produceAnalysisEngine(cpcTestDesc);