ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1165402 - /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/xpath/AXIOMXPathTestCase.java
Date Mon, 05 Sep 2011 19:38:32 GMT
Author: veithen
Date: Mon Sep  5 19:38:31 2011
New Revision: 1165402

URL: http://svn.apache.org/viewvc?rev=1165402&view=rev
Log:
Use the OMXMLBuilderFactory API in the XPath test cases.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/xpath/AXIOMXPathTestCase.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/xpath/AXIOMXPathTestCase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/xpath/AXIOMXPathTestCase.java?rev=1165402&r1=1165401&r2=1165402&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/xpath/AXIOMXPathTestCase.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/xpath/AXIOMXPathTestCase.java
Mon Sep  5 19:38:31 2011
@@ -25,19 +25,19 @@ import javax.xml.stream.XMLStreamReader;
 
 import org.apache.axiom.om.OMDocument;
 import org.apache.axiom.om.OMMetaFactory;
+import org.apache.axiom.om.OMXMLBuilderFactory;
 import org.apache.axiom.om.impl.RootWhitespaceFilter;
-import org.apache.axiom.om.impl.builder.StAXOMBuilder;
 import org.apache.axiom.om.util.StAXUtils;
 import org.apache.axiom.om.xpath.DocumentNavigator;
 import org.apache.axiom.test.jaxen.JaxenXPathTestBase;
 import org.jaxen.Navigator;
 
 public class AXIOMXPathTestCase extends JaxenXPathTestBase {
-    final OMMetaFactory omMetaFactory;
+    private final OMMetaFactory metaFactory;
     
-    public AXIOMXPathTestCase(String name, OMMetaFactory omMetaFactory) {
+    public AXIOMXPathTestCase(String name, OMMetaFactory metaFactory) {
         super(name);
-        this.omMetaFactory = omMetaFactory;
+        this.metaFactory = metaFactory;
     }
 
     protected Navigator createNavigator() {
@@ -49,7 +49,7 @@ public class AXIOMXPathTestCase extends 
         // represented in the tree (as in DOM), so we need to filter these events.
         XMLStreamReader reader = new RootWhitespaceFilter(
                 StAXUtils.createXMLStreamReader(in));
-        return new StAXOMBuilder(omMetaFactory.getOMFactory(), reader).getDocument();
+        return OMXMLBuilderFactory.createStAXOMBuilder(metaFactory.getOMFactory(), reader).getDocument();
     }
 
     protected void releaseDocument(Object document) {



Mime
View raw message