put in a dummy type priority in order to keep the old default type ordering so the tests still work.
@@ -30,7 +30,10 @@ import org.apache.uima.cas.CAS;
import org.apache.uima.cas.impl.XCASDeserializer;
import org.apache.uima.cas.text.AnnotationTreeNode;
import org.apache.uima.resource.metadata.FsIndexDescription;
+import org.apache.uima.resource.metadata.TypePriorities;
+import org.apache.uima.resource.metadata.TypePriorityList;
import org.apache.uima.resource.metadata.TypeSystemDescription;
+import org.apache.uima.resource.metadata.impl.TypePriorities_impl;
import org.apache.uima.test.junit_extension.JUnitExtension;
import org.apache.uima.util.CasCreationUtils;
import org.apache.uima.util.XMLInputSource;
@@ -66,7 +69,13 @@ public class AnnotationTreeTest extends TestCase {
// instantiate CAS to get type system. Also build style
// map file if there is none.
TypeSystemDescription tsDesc = (TypeSystemDescription) descriptor;
- CAS cas = CasCreationUtils.createCas(tsDesc, null, new FsIndexDescription[0]);
+
+ TypePriorities typePriorities = new TypePriorities_impl();
+ TypePriorityList priorityList = typePriorities.addPriorityList();
+ priorityList.addType("uima.cas.TOP");
+ priorityList.addType("uima.tcas.Annotation");
+
+ CAS cas = CasCreationUtils.createCas(tsDesc, typePriorities, new FsIndexDescription[0]);
SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
XCASDeserializer xcasDeserializer = new XCASDeserializer(cas.getTypeSystem());
File xcasFile = new File(xcasDir, sampleXcas1FileName);
