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:
parent
885368e2ce
commit
1241a24ebb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user