You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2015/05/23 03:44:58 UTC

svn commit: r1681256 - in /webservices/axiom/trunk/testing/dom-testsuite/src/main: java/org/apache/axiom/ts/dom/builder/TestParseURI.java resources/org/apache/axiom/ts/dom/builder/

Author: veithen
Date: Sat May 23 01:44:57 2015
New Revision: 1681256

URL: http://svn.apache.org/r1681256
Log:
Use existing XML sample.

Removed:
    webservices/axiom/trunk/testing/dom-testsuite/src/main/resources/org/apache/axiom/ts/dom/builder/
Modified:
    webservices/axiom/trunk/testing/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/builder/TestParseURI.java

Modified: webservices/axiom/trunk/testing/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/builder/TestParseURI.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/builder/TestParseURI.java?rev=1681256&r1=1681255&r2=1681256&view=diff
==============================================================================
--- webservices/axiom/trunk/testing/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/builder/TestParseURI.java (original)
+++ webservices/axiom/trunk/testing/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/builder/TestParseURI.java Sat May 23 01:44:57 2015
@@ -22,6 +22,7 @@ import javax.xml.parsers.DocumentBuilder
 import javax.xml.parsers.DocumentBuilderFactory;
 
 import org.apache.axiom.ts.dom.DOMTestCase;
+import org.apache.axiom.ts.xml.XMLSample;
 import org.w3c.dom.Document;
 
 /**
@@ -34,7 +35,7 @@ public class TestParseURI extends DOMTes
 
     protected void runTest() throws Throwable {
         DocumentBuilder builder = dbf.newDocumentBuilder();
-        Document document = builder.parse(TestParseURI.class.getResource("test.xml").toString());
+        Document document = builder.parse(XMLSample.SIMPLE.getUrl().toString());
         assertEquals("root", document.getDocumentElement().getLocalName());
     }
 }