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

View File

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