commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r770924 - /commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java
Date Sat, 02 May 2009 10:45:01 GMT
Author: mturk
Date: Sat May  2 10:45:01 2009
New Revision: 770924

URL: http://svn.apache.org/viewvc?rev=770924&view=rev
Log:
Revert faulty commit

Modified:
    commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java

Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java?rev=770924&r1=770923&r2=770924&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java (original)
+++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java Sat May
 2 10:45:01 2009
@@ -71,7 +71,7 @@
         FileType t = f.getFileType();
         assertEquals("Type", FileType.BLK, t);
     }
-/*
+
     public void testMakeSymlink()
         throws Exception
     {
@@ -86,31 +86,27 @@
             // fail("Unsupported Operating system");
         }
     }
-*/    
+
     public void testReadSymlink()
         throws Exception
     {
         try {
-            File target = new File("\\\\.\\pipe\\browser");
-            System.out.println("Target " + target.getPath());
-            File symlnk = new File("bar");
-            File.createSymbolicLink(target.getPath(), "bar");
-//            FileType t = symlnk.getFileType();
-            System.out.println("Link   " + symlnk.getTargetFile());
-/*
+            File target = new File("foo");
+            File symlnk = target.createSymbolicLink("bar");
+            FileType t = symlnk.getFileType();
             assertEquals("Name", "bar", symlnk.getPath());
             assertEquals("Type", FileType.LNK, t);
-            File second = new File("\\\\.\\pipe\\bar");
+            File second = new File("foo");
             File link2 = second.createSymbolicLink("bar");
             assertEquals("Name", "bar", link2.getPath());
-*/    
-   //         symlnk.delete();
+    
+            symlnk.delete();
         } catch (UnsupportedOperationException u) {
             // fail("Unsupported Operating system");            
         }
 
     }
-/*
+
     public void testReadSymlinkExists()
         throws Exception
     {
@@ -170,7 +166,7 @@
             // fail("Unsupported Operating system");
         }
     }
-*/
+
     public void testProtection()
         throws Exception
     {



Mime
View raw message