camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1152590 - in /camel/trunk/components: camel-test/src/main/java/org/apache/camel/test/TestSupport.java camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java camel-testng/src/main/java/org/apache/camel/testng/TestSupport.java
Date Sun, 31 Jul 2011 16:49:16 GMT
Author: davsclaus
Date: Sun Jul 31 16:49:15 2011
New Revision: 1152590

URL: http://svn.apache.org/viewvc?rev=1152590&view=rev
Log:
CAMEL-4275: camel test kit, deleteDirectory will not fail if deleting of files failed.

Modified:
    camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/TestSupport.java
    camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
    camel/trunk/components/camel-testng/src/main/java/org/apache/camel/testng/TestSupport.java

Modified: camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/TestSupport.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/TestSupport.java?rev=1152590&r1=1152589&r2=1152590&view=diff
==============================================================================
--- camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/TestSupport.java
(original)
+++ camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/TestSupport.java
Sun Jul 31 16:49:15 2011
@@ -428,7 +428,7 @@ public abstract class TestSupport extend
             }
         }
 
-        if (file.isFile() && file.exists()) {
+        if (file.exists()) {
             assertTrue("Deletion of file: " + file.getAbsolutePath() + " failed", file.delete());
         }
     }

Modified: camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java?rev=1152590&r1=1152589&r2=1152590&view=diff
==============================================================================
--- camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
(original)
+++ camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
Sun Jul 31 16:49:15 2011
@@ -417,7 +417,7 @@ public abstract class TestSupport extend
             }
         }
 
-        if (file.isFile() && file.exists()) {
+        if (file.exists()) {
             assertTrue("Deletion of file: " + file.getAbsolutePath() + " failed", file.delete());
         }
     }

Modified: camel/trunk/components/camel-testng/src/main/java/org/apache/camel/testng/TestSupport.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-testng/src/main/java/org/apache/camel/testng/TestSupport.java?rev=1152590&r1=1152589&r2=1152590&view=diff
==============================================================================
--- camel/trunk/components/camel-testng/src/main/java/org/apache/camel/testng/TestSupport.java
(original)
+++ camel/trunk/components/camel-testng/src/main/java/org/apache/camel/testng/TestSupport.java
Sun Jul 31 16:49:15 2011
@@ -407,7 +407,7 @@ public abstract class TestSupport extend
             }
         }
 
-        if (file.isFile() && file.exists()) {
+        if (file.exists()) {
             assertTrue(file.delete(), "Deletion of file: " + file.getAbsolutePath() + " failed");
         }
     }



Mime
View raw message