commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1527233 - /commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/io/TestFileLocatorUtils.java
Date Sat, 28 Sep 2013 19:34:17 GMT
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
         {



Mime
View raw message