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:00:59 UTC
svn commit: r1376110 -
/camel/trunk/camel-core/src/test/java/org/apache/camel/TestSupport.java
Author: davsclaus
Date: Wed Aug 22 16:00:59 2012
New Revision: 1376110
URL: http://svn.apache.org/viewvc?rev=1376110&view=rev
Log:
Added assertFileNotExists to test kit
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/TestSupport.java
Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/TestSupport.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/TestSupport.java?rev=1376110&r1=1376109&r2=1376110&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/TestSupport.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/TestSupport.java Wed Aug 22 16:00:59 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.