camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r927003 - in /camel/trunk/components/camel-hawtdb: pom.xml src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadConcurrentTest.java src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadTest.java
Date Wed, 24 Mar 2010 10:33:35 GMT
Author: davsclaus
Date: Wed Mar 24 10:33:34 2010
New Revision: 927003

URL: http://svn.apache.org/viewvc?rev=927003&view=rev
Log:
CAMEL-2568: Polished tests.

Modified:
    camel/trunk/components/camel-hawtdb/pom.xml
    camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadConcurrentTest.java
    camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadTest.java

Modified: camel/trunk/components/camel-hawtdb/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-hawtdb/pom.xml?rev=927003&r1=927002&r2=927003&view=diff
==============================================================================
--- camel/trunk/components/camel-hawtdb/pom.xml (original)
+++ camel/trunk/components/camel-hawtdb/pom.xml Wed Mar 24 10:33:34 2010
@@ -108,4 +108,16 @@
         </dependency>
     </dependencies>
 
+    <build>
+        <plugins>
+            <!-- use per test fork mode to avoid side effects -->
+            <plugin>
+              <artifactId>maven-surefire-plugin</artifactId>
+              <configuration>
+                <forkMode>pertest</forkMode>
+              </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
 </project>

Modified: camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadConcurrentTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadConcurrentTest.java?rev=927003&r1=927002&r2=927003&view=diff
==============================================================================
--- camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadConcurrentTest.java
(original)
+++ camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadConcurrentTest.java
Wed Mar 24 10:33:34 2010
@@ -44,7 +44,7 @@ public class HawtDBAggregateLoadConcurre
     public void testLoadTestHawtDBAggregate() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMinimumMessageCount(10);
-        mock.setResultWaitTime(60 * 60 * 1000);
+        mock.setResultWaitTime(20 * 1000);
 
         ExecutorService executor = Executors.newFixedThreadPool(10);
 

Modified: camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadTest.java?rev=927003&r1=927002&r2=927003&view=diff
==============================================================================
--- camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadTest.java
(original)
+++ camel/trunk/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateLoadTest.java
Wed Mar 24 10:33:34 2010
@@ -39,7 +39,7 @@ public class HawtDBAggregateLoadTest ext
     public void testLoadTestHawtDBAggregate() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMinimumMessageCount(1);
-        mock.setResultWaitTime(60 * 60 * 1000);
+        mock.setResultWaitTime(20 * 1000);
 
         System.out.println("Staring to send " + SIZE + " messages.");
 



Mime
View raw message