commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r789310 - /commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java
Date Mon, 29 Jun 2009 12:46:30 GMT
Author: mturk
Date: Mon Jun 29 12:46:30 2009
New Revision: 789310

URL: http://svn.apache.org/viewvc?rev=789310&view=rev
Log:
Prety print the file test case. Those prints will go away in release

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=789310&r1=789309&r2=789310&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 Mon Jun
29 12:46:30 2009
@@ -173,7 +173,8 @@
         File f = new File("ffoo");
         f.createNewFile();
         EnumSet <FileProtection> fp = f.getFileProtection();
-        System.out.println("Protection " + fp);
+        System.out.println();
+        System.out.println("Def Protection " + fp);
         assertTrue("UWRITE", fp.contains(FileProtection.UWRITE));
         f.delete();
     }
@@ -184,6 +185,7 @@
         File f = new File("ffoo");
         f.createNewFile();
         EnumSet <FileProtection> fp = f.getFileProtection();
+        System.out.println();
         System.out.println("Org Protection " + fp);
         f.setFileProtection(EnumSet.of(FileProtection.GWRITE));
         EnumSet <FileProtection> np = f.getFileProtection();
@@ -221,6 +223,7 @@
         File f = new File("ffoo");
         f.createNewFile();
         EnumSet <FileProtection> fp = f.getFileProtection();
+        System.out.println();
         System.out.println("Org Attr Protection " + fp);
         // Set the rdonly attributes
         f.setFileAttributes(EnumSet.of(FileAttributes.READ), EnumSet.of(FileAttributes.READ));
@@ -238,13 +241,14 @@
         File f = new File("ffoo");
         f.createNewFile();
         EnumSet <FileProtection> fp = f.getFileProtection();
-        System.out.println("Org Attr Protection " + fp);
+        System.out.println();
+        System.out.println("Org Rdonly Protection " + fp);
         // Set the rdonly attributes
         f.setFileAttributes(EnumSet.of(FileAttributes.READ), EnumSet.allOf(FileAttributes.class));
         // Clear the rdonly attributes
         f.setFileAttributes(EnumSet.noneOf(FileAttributes.class), EnumSet.of(FileAttributes.READ));
         EnumSet <FileProtection> np = f.getFileProtection();
-        System.out.println("Set Attr Protection " + np);
+        System.out.println("Set Rdonly Protection " + np);
         assertTrue("GWRITE", np.contains(FileProtection.GWRITE));
         f.delete();
     }
@@ -255,16 +259,18 @@
         File f = new File("ffoo");
         f.createNewFile();
         EnumSet <FileProtection> fp = f.getFileProtection();
-        System.out.println("Clr Attr Protection " + fp);
+        System.out.println();
+        System.out.println("Org Clear Protection " + fp);
         f.setFileAttributes(EnumSet.allOf(FileAttributes.class), EnumSet.of(FileAttributes.READ,
FileAttributes.EXECUTABLE));
         EnumSet <FileProtection> cp = f.getFileProtection();
-        System.out.println("Rst Attr Protection " + cp);
+        System.out.println("Rst Clear Protection " + cp);
         // Clear the rdonly attributes
         f.setFileAttributes(EnumSet.noneOf(FileAttributes.class), EnumSet.of(FileAttributes.READ));
         EnumSet <FileProtection> np = f.getFileProtection();
-        System.out.println("Set Attr Protection " + np);
+        System.out.println("Set Clear Protection " + np);
         assertTrue("UEXECUTE", np.contains(FileProtection.UEXECUTE));
         f.delete();
     }
 
 }
+



Mime
View raw message