You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oh...@apache.org on 2013/09/28 21:34:17 UTC
svn commit: r1527233 -
/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/io/TestFileLocatorUtils.java
Author: oheger
Date: Sat Sep 28 19:34:17 2013
New Revision: 1527233
URL: http://svn.apache.org/r1527233
Log:
Changed test case for a locate() operation with an undefined TCCL.
The test now uses the new locate() method which operates on a FileLocator.
Modified:
commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/io/TestFileLocatorUtils.java
Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/io/TestFileLocatorUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/io/TestFileLocatorUtils.java?rev=1527233&r1=1527232&r2=1527233&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/io/TestFileLocatorUtils.java (original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/io/TestFileLocatorUtils.java Sat Sep 28 19:34:17 2013
@@ -158,9 +158,8 @@ public class TestFileLocatorUtils
try
{
Thread.currentThread().setContextClassLoader(null);
- assertNull(FileLocatorUtils.locate(new DefaultFileSystem(), "abase", "aname"));
- // This assert fails when maven 2 is used, so commented out
- //assertNotNull(FileLocatorUtils.locate("test.xml"));
+ assertNull(FileLocatorUtils.locate(FileLocatorUtils.fileLocator()
+ .basePath("abase").fileName("aname").create()));
}
finally
{