move setting of xmlinputfactory from junit to gump-meta/poi.xml

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1694120 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2015-08-04 22:24:31 +00:00
parent 885368e2ce
commit 1241a24ebb
1 changed files with 11 additions and 11 deletions

View File

@ -44,7 +44,7 @@ public class TestPPTX2PNG {
@BeforeClass
public static void activateJaxpDebug() {
jaxpDebugEnable = setDebugFld(true);
setXmlInputFactory();
// setXmlInputFactory();
}
@AfterClass
@ -67,16 +67,16 @@ public class TestPPTX2PNG {
}
}
private static void setXmlInputFactory() {
String propName = "javax.xml.stream.XMLInputFactory";
String propVal = "com.sun.xml.internal.stream.XMLInputFactoryImpl";
try {
Class.forName(propVal);
System.setProperty(propName, propVal);
} catch (Exception e){
// ignore
}
}
// private static void setXmlInputFactory() {
// String propName = "javax.xml.stream.XMLInputFactory";
// String propVal = "com.sun.xml.internal.stream.XMLInputFactoryImpl";
// try {
// Class.forName(propVal);
// System.setProperty(propName, propVal);
// } catch (Exception e){
// // ignore
// }
// }
@Test