camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1350899 - in /camel/trunk/camel-core/src/test/java/org/apache/camel: builder/ErrorHandlerTest.java component/seda/SedaRouteTest.java
Date Sat, 16 Jun 2012 09:45:51 GMT
Author: davsclaus
Date: Sat Jun 16 09:45:51 2012
New Revision: 1350899

URL: http://svn.apache.org/viewvc?rev=1350899&view=rev
Log:
Faster unit test with seda

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ErrorHandlerTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/component/seda/SedaRouteTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ErrorHandlerTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ErrorHandlerTest.java?rev=1350899&r1=1350898&r2=1350899&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ErrorHandlerTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ErrorHandlerTest.java Sat
Jun 16 09:45:51 2012
@@ -35,6 +35,19 @@ import org.apache.camel.processor.SendPr
  */
 public class ErrorHandlerTest extends TestSupport {
 
+    @Override
+    protected void setUp() throws Exception {
+        // make SEDA testing faster
+        System.setProperty("CamelSedaPollTimeout", "10");
+        super.setUp();
+    }
+
+    @Override
+    protected void tearDown() throws Exception {
+        System.clearProperty("CamelSedaPollTimeout");
+        super.tearDown();
+    }
+
     public void testOverloadingTheDefaultErrorHandler() throws Exception {
         // START SNIPPET: e1
         RouteBuilder builder = new RouteBuilder() {

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/component/seda/SedaRouteTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/seda/SedaRouteTest.java?rev=1350899&r1=1350898&r2=1350899&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/component/seda/SedaRouteTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/component/seda/SedaRouteTest.java
Sat Jun 16 09:45:51 2012
@@ -33,6 +33,19 @@ import org.apache.camel.impl.DefaultCame
  */
 public class SedaRouteTest extends TestSupport {
 
+    @Override
+    protected void setUp() throws Exception {
+        // make SEDA testing faster
+        System.setProperty("CamelSedaPollTimeout", "10");
+        super.setUp();
+    }
+
+    @Override
+    protected void tearDown() throws Exception {
+        System.clearProperty("CamelSedaPollTimeout");
+        super.tearDown();
+    }
+
     public void testSedaQueue() throws Exception {
         final CountDownLatch latch = new CountDownLatch(1);
 



Mime
View raw message