commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject svn commit: r267448 - /jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java
Date Sat, 03 Sep 2005 11:29:20 GMT
Author: scolebourne
Date: Sat Sep  3 04:29:16 2005
New Revision: 267448

URL: http://svn.apache.org/viewcvs?rev=267448&view=rev
Log:
Change test to try and make it pass Gump

Modified:
    jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java

Modified: jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java?rev=267448&r1=267447&r2=267448&view=diff
==============================================================================
--- jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java
(original)
+++ jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java
Sat Sep  3 04:29:16 2005
@@ -36,6 +36,12 @@
 
     public static void main(String[] args) {
         TestRunner.run(suite());
+        
+//        try {
+//            System.out.println(FileSystemUtils.getFreeSpace("C:\\"));
+//        } catch (IOException ex) {
+//            ex.printStackTrace();
+//        }
     }
 
     public static Test suite() {
@@ -56,7 +62,7 @@
     public void testGetFreeSpace_String() throws Exception {
         // test coverage, as we can't check value
         if (File.separatorChar == '/') {
-            assertEquals(true, FileSystemUtils.getFreeSpace("~") > 0);
+            assertEquals(true, FileSystemUtils.getFreeSpace("/") > 0);
         } else {
             assertEquals(true, FileSystemUtils.getFreeSpace("") > 0);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message