You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2012/08/22 18:04:45 UTC

svn commit: r1376115 - in /camel/branches/camel-2.10.x: ./ camel-core/src/test/java/org/apache/camel/TestSupport.java

Author: davsclaus
Date: Wed Aug 22 16:04:44 2012
New Revision: 1376115

URL: http://svn.apache.org/viewvc?rev=1376115&view=rev
Log:
Added assertFileNotExists to test kit

Modified:
    camel/branches/camel-2.10.x/   (props changed)
    camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/TestSupport.java

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
  Merged /camel/trunk:r1376110

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/TestSupport.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/TestSupport.java?rev=1376115&r1=1376114&r2=1376115&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/TestSupport.java (original)
+++ camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/TestSupport.java Wed Aug 22 16:04:44 2012
@@ -473,6 +473,14 @@ public abstract class TestSupport extend
     }
 
     /**
+     * To be used to check is a file is <b>not</b> found in the file system
+     */
+    public static void assertFileNotExists(String filename) {
+        File file = new File(filename).getAbsoluteFile();
+        assertFalse("File " + filename + " should not exist", file.exists());
+    }
+
+    /**
      * Is this OS the given platform.
      * <p/>
      * Uses <tt>os.name</tt> from the system properties to determine the OS.