You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2012/11/21 20:56:27 UTC

svn commit: r1412258 - /camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerAutoCreateDirectoryTest.java

Author: bvahdat
Date: Wed Nov 21 19:56:26 2012
New Revision: 1412258

URL: http://svn.apache.org/viewvc?rev=1412258&view=rev
Log:
Removed the obsolete/useless java.io.File.getAbsoluteFile() calls inside the tests. Verified that the tests do still pass using WIN-VISTA.

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerAutoCreateDirectoryTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerAutoCreateDirectoryTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerAutoCreateDirectoryTest.java?rev=1412258&r1=1412257&r2=1412258&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerAutoCreateDirectoryTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerAutoCreateDirectoryTest.java Wed Nov 21 19:56:26 2012
@@ -44,7 +44,7 @@ public class FileConsumerAutoCreateDirec
         consumer.stop();
 
         // the directory should now exists
-        File dir = new File("target/file/foo").getAbsoluteFile();
+        File dir = new File("target/file/foo");
         assertTrue("Directory should be created", dir.exists());
         assertTrue("Directory should be a directory", dir.isDirectory());
     }
@@ -65,7 +65,7 @@ public class FileConsumerAutoCreateDirec
         consumer.stop();
 
         // the directory should now exists
-        File dir = new File(base).getAbsoluteFile();
+        File dir = new File(base);
         assertTrue("Directory should be created", dir.exists());
         assertTrue("Directory should be a directory", dir.isDirectory());
     }
@@ -84,7 +84,7 @@ public class FileConsumerAutoCreateDirec
         consumer.stop();
 
         // the directory should NOT exists
-        File dir = new File("target/file/foo").getAbsoluteFile();
+        File dir = new File("target/file/foo");
         assertFalse("Directory should NOT be created", dir.exists());
     }
 
@@ -102,7 +102,7 @@ public class FileConsumerAutoCreateDirec
         consumer.stop();
 
         // the directory should exist
-        File dir = new File("target/file/foo.bar").getAbsoluteFile();
+        File dir = new File("target/file/foo.bar");
         assertTrue("Directory should be created", dir.exists());
         assertTrue("Directory should be a directory", dir.isDirectory());
     }
@@ -123,7 +123,7 @@ public class FileConsumerAutoCreateDirec
         }
 
         // the directory should NOT exists
-        File dir = new File("target/file/foo").getAbsoluteFile();
+        File dir = new File("target/file/foo");
         assertFalse("Directory should NOT be created", dir.exists());
     }