Author: oheger
Date: Sat Sep 28 19:33:50 2013
New Revision: 1527232

URL: http://svn.apache.org/r1527232
Log:
Use a simpler way to obtain a URL in a test case.

The old FileLocatorUtils.locate() method has become obsolete, so all references
to it have to be removed.

Modified:
    
commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestXMLPropertiesConfiguration.java

Modified: 
commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestXMLPropertiesConfiguration.java
URL: 
http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestXMLPropertiesConfiguration.java?rev=1527232&r1=1527231&r2=1527232&view=diff
==============================================================================
--- 
commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestXMLPropertiesConfiguration.java
 (original)
+++ 
commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestXMLPropertiesConfiguration.java
 Sat Sep 28 19:33:50 2013
@@ -32,8 +32,6 @@ import javax.xml.transform.dom.DOMSource
 import javax.xml.transform.stream.StreamResult;
 
 import org.apache.commons.configuration.io.FileHandler;
-import org.apache.commons.configuration.io.FileLocatorUtils;
-import org.apache.commons.configuration.io.FileSystem;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.TemporaryFolder;
@@ -85,7 +83,7 @@ public class TestXMLPropertiesConfigurat
     @Test
     public void testDOMLoad() throws Exception
     {
-        URL location = 
FileLocatorUtils.locate(FileSystem.getDefaultFileSystem(), null, 
TEST_PROPERTIES_FILE);
+        URL location = ConfigurationAssert.getTestURL(TEST_PROPERTIES_FILE);
         DocumentBuilderFactory dbFactory = 
DocumentBuilderFactory.newInstance();
         DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
         File file = new File(location.toURI());


Reply via email to