} catch (SAXException e) {
throw new FOPException(e);
}
+ if (!strictValidation) {
+ fopFactoryBuilder.setStrictFOValidation(strictValidation);
+ }
+ if (useComplexScriptFeatures) {
+ fopFactoryBuilder.setComplexScriptFeatures(useComplexScriptFeatures);
+ }
}
factory = fopFactoryBuilder.build();
}
import org.apache.xmlgraphics.util.MimeConstants;
+import org.apache.fop.apps.FOPException;
import org.apache.fop.events.EventProcessingTestCase;
testInvalidConfigEvent("afp-font-missing.xconf", ".fontConfigMissing");
}
- @Test
+ @Test(expected = FOPException.class)
public void testInvalidCharactersetName() throws Exception {
testInvalidConfigEvent("afp-invalid-characterset.xconf", ".characterSetNameInvalid");
}
- @Test
+ @Test(expected = FOPException.class)
public void testinvalidConfig() throws Exception {
testInvalidConfigEvent("afp-invalid-config.xconf", ".invalidConfiguration");
}