Author: davsclaus
Date: Tue Jan  6 11:08:25 2009
New Revision: 732062

URL: http://svn.apache.org/viewvc?rev=732062&view=rev
Log:
cleanup in unit test that creates /target folder in root

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

Modified: 
activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConfigureTest.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConfigureTest.java?rev=732062&r1=732061&r2=732062&view=diff
==============================================================================
--- 
activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConfigureTest.java
 (original)
+++ 
activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConfigureTest.java
 Tue Jan  6 11:08:25 2009
@@ -61,6 +61,13 @@
         }
     }
 
+    @Override
+    protected void tearDown() throws Exception {
+        super.tearDown();
+        // one of the above tests created a /target folder in the root we want 
to get rid of when testing
+        deleteDirectory("/target");
+    }
+
     private FileConsumer createFileConsumer(String endpointUri) throws 
Exception {
         FileEndpoint endpoint = resolveMandatoryEndpoint(endpointUri, 
FileEndpoint.class);
         return (FileConsumer)endpoint.createConsumer(DUMMY_PROCESSOR);


Reply via email to