ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1429291 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/util/stax/dialect/DialectTestSuite.java
Date Sat, 05 Jan 2013 14:31:58 GMT
Author: veithen
Date: Sat Jan  5 14:31:57 2013
New Revision: 1429291

URL: http://svn.apache.org/viewvc?rev=1429291&view=rev
Log:
Fixed DialectTestSuite so that it actually tests the StAX implementation from the JRE.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/util/stax/dialect/DialectTestSuite.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/util/stax/dialect/DialectTestSuite.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/util/stax/dialect/DialectTestSuite.java?rev=1429291&r1=1429290&r2=1429291&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/util/stax/dialect/DialectTestSuite.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/util/stax/dialect/DialectTestSuite.java
Sat Jan  5 14:31:57 2013
@@ -41,7 +41,10 @@ public class DialectTestSuite extends Te
         
         // On Java 1.6 and above, also add the StAX implementation from the JRE
         if (!System.getProperty("java.version").startsWith("1.5")) {
-            builder.addImplementation(new StAXImplementation("JRE", ClassLoader.getSystemClassLoader(),
null));
+            Properties props = new Properties();
+            props.setProperty("javax.xml.stream.XMLInputFactory", "com.sun.xml.internal.stream.XMLInputFactoryImpl");
+            props.setProperty("javax.xml.stream.XMLOutputFactory", "com.sun.xml.internal.stream.XMLOutputFactoryImpl");
+            builder.addImplementation(new StAXImplementation("JRE", ClassLoader.getSystemClassLoader(),
props));
         }
         
         addParsersFromDirectory(builder, new File("parsers"));



Mime
View raw message