servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r564128 - in /incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test: java/org/apache/servicemix/truezip/ resources/
Date Thu, 09 Aug 2007 07:58:00 GMT
Author: gnodet
Date: Thu Aug  9 00:57:59 2007
New Revision: 564128

URL: http://svn.apache.org/viewvc?view=rev&rev=564128
Log:
Fix junit tests

Modified:
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/DynamicEndpointTest.java
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/PollDirectoryTest.java
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/SpringComponentTest.java
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/resources/spring-polling.xml

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/DynamicEndpointTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/DynamicEndpointTest.java?view=diff&rev=564128&r1=564127&r2=564128
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/DynamicEndpointTest.java
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/DynamicEndpointTest.java
Thu Aug  9 00:57:59 2007
@@ -21,12 +21,11 @@
 import javax.jbi.messaging.MessageExchange;
 import javax.jbi.servicedesc.ServiceEndpoint;
 
-import de.schlichtherle.io.File;
-
 import org.apache.servicemix.client.DefaultServiceMixClient;
 import org.apache.servicemix.client.ServiceMixClient;
 import org.apache.servicemix.jbi.jaxp.SourceTransformer;
 import org.apache.servicemix.jbi.jaxp.StringSource;
+import org.apache.servicemix.jbi.util.FileUtil;
 import org.apache.servicemix.tck.SpringTestSupport;
 import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;
 import org.springframework.context.support.AbstractXmlApplicationContext;
@@ -36,7 +35,7 @@
 
     protected void setUp() throws Exception {
         super.setUp();
-        new File("target/dynamicEndpoint.zip").mkdirs();
+        FileUtil.deleteFile(new java.io.File("target/dynamicEndpoint.zip"));
     }
 
     public void testSendingToDynamicEndpoint() throws Exception {

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/PollDirectoryTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/PollDirectoryTest.java?view=diff&rev=564128&r1=564127&r2=564128
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/PollDirectoryTest.java
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/PollDirectoryTest.java
Thu Aug  9 00:57:59 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.servicemix.truezip;
 
+import java.io.File;
+
 import javax.jbi.messaging.ExchangeStatus;
 import javax.jbi.messaging.InOnly;
 import javax.jbi.messaging.MessageExchange;
@@ -26,6 +28,7 @@
 import org.apache.servicemix.components.util.DefaultFileMarshaler;
 import org.apache.servicemix.jbi.jaxp.SourceTransformer;
 import org.apache.servicemix.jbi.jaxp.StringSource;
+import org.apache.servicemix.jbi.util.FileUtil;
 import org.apache.servicemix.tck.Receiver;
 import org.apache.servicemix.tck.SpringTestSupport;
 import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;
@@ -35,6 +38,11 @@
 
     private static final int NUMBER = 10;
 
+    protected void setUp() throws Exception {
+        FileUtil.deleteFile(new File("target/pollerFiles.zip"));
+        super.setUp();
+    }
+    
     public void testSendToWriterSoItCanBePolled() throws Exception {
         // now lets make a request on this endpoint
         DefaultServiceMixClient client = new DefaultServiceMixClient(jbi);

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/SpringComponentTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/SpringComponentTest.java?view=diff&rev=564128&r1=564127&r2=564128
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/SpringComponentTest.java
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/java/org/apache/servicemix/truezip/SpringComponentTest.java
Thu Aug  9 00:57:59 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.servicemix.truezip;
 
+import java.io.File;
+
 import javax.jbi.messaging.ExchangeStatus;
 import javax.jbi.messaging.InOnly;
 import javax.jbi.messaging.MessageExchange;
@@ -25,12 +27,18 @@
 import org.apache.servicemix.client.DefaultServiceMixClient;
 import org.apache.servicemix.jbi.jaxp.SourceTransformer;
 import org.apache.servicemix.jbi.jaxp.StringSource;
+import org.apache.servicemix.jbi.util.FileUtil;
 import org.apache.servicemix.tck.SpringTestSupport;
 import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;
 import org.springframework.context.support.AbstractXmlApplicationContext;
 
 public class SpringComponentTest extends SpringTestSupport {
 
+    protected void setUp() throws Exception {
+        FileUtil.deleteFile(new File("target/componentOutput.zip"));
+        super.setUp();
+    }
+    
     public void testSendingToStaticEndpoint() throws Exception {
         DefaultServiceMixClient client = new DefaultServiceMixClient(jbi);
         InOnly me = client.createInOnlyExchange();

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/resources/spring-polling.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/resources/spring-polling.xml?view=diff&rev=564128&r1=564127&r2=564128
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/resources/spring-polling.xml
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-truezip/src/test/resources/spring-polling.xml
Thu Aug  9 00:57:59 2007
@@ -36,7 +36,8 @@
                 <file:poller service="test:poller"
                              endpoint="poller"
                              targetService="test:receiver"
-                             file="file:target/pollerFiles.zip" />
+                             file="file:target/pollerFiles.zip"
+                             period="500" />
             	</file:endpoints>
             </file:component>
         </sm:component>



Mime
View raw message