url = RutaTestUtils.class.getClassLoader().getResource(
"org/apache/uima/ruta/engine/ViewWriter.xml");
}
File tempFile = File.createTempFile("ViewWriterTest", ".xmi");
XMLInputSource in = new XMLInputSource(url);
ResourceSpecifier specifier = UIMAFramework.getXMLParser().parseResourceSpecifier(in);
AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(specifier);
ae.setConfigParameterValue(ViewWriter.INPUT_VIEW, NEW_VIEW);
ae.setConfigParameterValue(ViewWriter.OUTPUT_VIEW, CAS.NAME_DEFAULT_SOFA);
ae.setConfigParameterValue(ViewWriter.OUTPUT, tempFile.getAbsolutePath());