public void testGenerateAndDeployPrimitiveDD() throws Exception {
System.out.println("-------------- testGenerateAndDeployPrimitiveDD -------------");
File directory = new File (".");
// Set up a context object containing basic service deployment
// information
ServiceContext context = new ServiceContextImpl("PersonTitle",
"PersonTitle Annotator Description",
directory.getCanonicalPath() +
System.getProperty("file.separator")+
resourceDirPath+
System.getProperty("file.separator")+
"descriptors" +
System.getProperty("file.separator")+
"analysis_engine" +
System.getProperty("file.separator")+
"PersonTitleAnnotator.xml",
"PersonTitleAnnotatorQueue",
broker.getMasterConnectorURI());
context.setCasPoolSize(2);
// create DD with default settings
UimaASPrimitiveDeploymentDescriptor dd = DeploymentDescriptorFactory
.createPrimitiveDeploymentDescriptor(context);
// Get default Error Handler for process and change error threshold