You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by mu...@apache.org on 2007/12/20 20:03:45 UTC

svn commit: r605999 - /xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/ResourceResolverTest.java

Author: mullan
Date: Thu Dec 20 11:03:42 2007
New Revision: 605999

URL: http://svn.apache.org/viewvc?rev=605999&view=rev
Log:
Fix bug in testLocalFileWithEmptyBaseURI. Use existing data file (build.xml) to 
check against.

Modified:
    xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/ResourceResolverTest.java

Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/ResourceResolverTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/ResourceResolverTest.java?rev=605999&r1=605998&r2=605999&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/ResourceResolverTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/ResourceResolverTest.java Thu Dec 20 11:03:42 2007
@@ -89,9 +89,10 @@
 	Document doc = 
         DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
 	Attr uriAttr = doc.createAttribute("URI");
-	uriAttr.setValue("file:/tmp/foo.xml");
-	ResourceResolver res = 
-	    ResourceResolver.getInstance(uriAttr, "file:/tmp/foo.xml");
+	String basedir = System.getProperty("basedir");
+	String file = "file:" + basedir + "/build.xml";
+	uriAttr.setValue(file);
+	ResourceResolver res = ResourceResolver.getInstance(uriAttr, file);
 	try {
 	    res.resolve(uriAttr, "");
 	} catch (Exception e) {