You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cm...@apache.org on 2012/12/31 13:19:53 UTC

svn commit: r1427099 - in /camel/branches/camel-2.8.x/tests/camel-performance: ./ src/test/java/org/apache/camel/test/perf/

Author: cmueller
Date: Mon Dec 31 12:19:52 2012
New Revision: 1427099

URL: http://svn.apache.org/viewvc?rev=1427099&view=rev
Log:
adapt the pom version number and the unit tests

Modified:
    camel/branches/camel-2.8.x/tests/camel-performance/pom.xml
    camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/AbstractBasePerformanceTest.java
    camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/ContentBasedRoutingPerformanceTest.java
    camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/HeaderBasedRoutingPerformanceTest.java
    camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/SplitterPerformanceTest.java
    camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XPathBasedRoutingPerformanceTest.java
    camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XQueryBasedRoutingPerformanceTest.java
    camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XsltPerformanceTest.java

Modified: camel/branches/camel-2.8.x/tests/camel-performance/pom.xml
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/tests/camel-performance/pom.xml?rev=1427099&r1=1427098&r2=1427099&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/tests/camel-performance/pom.xml (original)
+++ camel/branches/camel-2.8.x/tests/camel-performance/pom.xml Mon Dec 31 12:19:52 2012
@@ -22,7 +22,7 @@
   <parent>
     <groupId>org.apache.camel</groupId>
     <artifactId>tests</artifactId>
-    <version>2.11-SNAPSHOT</version>
+    <version>2.8.7-SNAPSHOT</version>
   </parent>
 
   <artifactId>camel-performance</artifactId>
@@ -32,7 +32,7 @@
   <dependencies>
     <dependency>
       <groupId>org.apache.camel</groupId>
-      <artifactId>camel-test-spring</artifactId>
+      <artifactId>camel-test</artifactId>
       <scope>test</scope>
     </dependency>
     <dependency>

Modified: camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/AbstractBasePerformanceTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/AbstractBasePerformanceTest.java?rev=1427099&r1=1427098&r2=1427099&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/AbstractBasePerformanceTest.java (original)
+++ camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/AbstractBasePerformanceTest.java Mon Dec 31 12:19:52 2012
@@ -43,8 +43,6 @@ public abstract class AbstractBasePerfor
     protected void resetMock(int count) {
         MockEndpoint mock = getMockEndpoint("mock:end");
         mock.reset();
-        mock.setRetainFirst(0);
-        mock.setRetainLast(0);
         mock.expectedMessageCount(count);
     }
 

Modified: camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/ContentBasedRoutingPerformanceTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/ContentBasedRoutingPerformanceTest.java?rev=1427099&r1=1427098&r2=1427099&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/ContentBasedRoutingPerformanceTest.java (original)
+++ camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/ContentBasedRoutingPerformanceTest.java Mon Dec 31 12:19:52 2012
@@ -17,6 +17,7 @@
 package org.apache.camel.test.perf;
 
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.impl.DefaultProducerTemplate;
 import org.junit.Test;
 
 public class ContentBasedRoutingPerformanceTest extends AbstractBasePerformanceTest {
@@ -25,7 +26,7 @@ public class ContentBasedRoutingPerforma
 
     @Test
     public void testChoiceSimple() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:choice-simple");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:choice-simple");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);
@@ -42,7 +43,7 @@ public class ContentBasedRoutingPerforma
 
     @Test
     public void testChoiceExpression() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:choice-expression");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:choice-expression");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);
@@ -59,7 +60,7 @@ public class ContentBasedRoutingPerforma
 
     @Test
     public void testFilterSimple() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:filter-simple");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:filter-simple");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);
@@ -76,7 +77,7 @@ public class ContentBasedRoutingPerforma
 
     @Test
     public void testFilterExpression() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:filter-expression");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:filter-expression");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);

Modified: camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/HeaderBasedRoutingPerformanceTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/HeaderBasedRoutingPerformanceTest.java?rev=1427099&r1=1427098&r2=1427099&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/HeaderBasedRoutingPerformanceTest.java (original)
+++ camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/HeaderBasedRoutingPerformanceTest.java Mon Dec 31 12:19:52 2012
@@ -17,6 +17,7 @@
 package org.apache.camel.test.perf;
 
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.impl.DefaultProducerTemplate;
 import org.junit.Test;
 
 public class HeaderBasedRoutingPerformanceTest extends AbstractBasePerformanceTest {
@@ -25,7 +26,7 @@ public class HeaderBasedRoutingPerforman
 
     @Test
     public void testChoiceSimple() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:choice-simple");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:choice-simple");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);
@@ -42,7 +43,7 @@ public class HeaderBasedRoutingPerforman
 
     @Test
     public void testChoiceExpression() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:choice-expression");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:choice-expression");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);
@@ -59,7 +60,7 @@ public class HeaderBasedRoutingPerforman
 
     @Test
     public void testFilterSimple() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:filter-simple");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:filter-simple");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);
@@ -76,7 +77,7 @@ public class HeaderBasedRoutingPerforman
 
     @Test
     public void testFilterExpression() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:filter-expression");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:filter-expression");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);

Modified: camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/SplitterPerformanceTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/SplitterPerformanceTest.java?rev=1427099&r1=1427098&r2=1427099&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/SplitterPerformanceTest.java (original)
+++ camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/SplitterPerformanceTest.java Mon Dec 31 12:19:52 2012
@@ -17,6 +17,7 @@
 package org.apache.camel.test.perf;
 
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.impl.DefaultProducerTemplate;
 import org.junit.Test;
 
 public class SplitterPerformanceTest extends AbstractBasePerformanceTest {
@@ -58,7 +59,7 @@ public class SplitterPerformanceTest ext
 
     @Test
     public void testTokenize() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:tokenize");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:tokenize");
 
         // warm up with 30.000 messages so that the JIT compiler kicks in
         execute(1);

Modified: camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XPathBasedRoutingPerformanceTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XPathBasedRoutingPerformanceTest.java?rev=1427099&r1=1427098&r2=1427099&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XPathBasedRoutingPerformanceTest.java (original)
+++ camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XPathBasedRoutingPerformanceTest.java Mon Dec 31 12:19:52 2012
@@ -20,6 +20,7 @@ import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.impl.DefaultProducerTemplate;
 import org.junit.Test;
 
 public class XPathBasedRoutingPerformanceTest extends AbstractBasePerformanceTest {
@@ -28,7 +29,7 @@ public class XPathBasedRoutingPerformanc
 
     @Test
     public void testChoice() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:choice");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:choice");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);
@@ -45,7 +46,7 @@ public class XPathBasedRoutingPerformanc
 
     @Test
     public void testFilter() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:filter");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:filter");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);

Modified: camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XQueryBasedRoutingPerformanceTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XQueryBasedRoutingPerformanceTest.java?rev=1427099&r1=1427098&r2=1427099&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XQueryBasedRoutingPerformanceTest.java (original)
+++ camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XQueryBasedRoutingPerformanceTest.java Mon Dec 31 12:19:52 2012
@@ -20,6 +20,7 @@ import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.impl.DefaultProducerTemplate;
 import org.junit.Test;
 
 public class XQueryBasedRoutingPerformanceTest extends AbstractBasePerformanceTest {
@@ -28,7 +29,7 @@ public class XQueryBasedRoutingPerforman
 
     @Test
     public void testChoice() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:choice");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:choice");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);
@@ -45,7 +46,7 @@ public class XQueryBasedRoutingPerforman
 
     @Test
     public void testFilter() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:filter");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:filter");
 
         // warm up with 20.000 messages so that the JIT compiler kicks in
         execute(20000);

Modified: camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XsltPerformanceTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XsltPerformanceTest.java?rev=1427099&r1=1427098&r2=1427099&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XsltPerformanceTest.java (original)
+++ camel/branches/camel-2.8.x/tests/camel-performance/src/test/java/org/apache/camel/test/perf/XsltPerformanceTest.java Mon Dec 31 12:19:52 2012
@@ -17,6 +17,7 @@
 package org.apache.camel.test.perf;
 
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.impl.DefaultProducerTemplate;
 import org.junit.Test;
 
 public class XsltPerformanceTest extends AbstractBasePerformanceTest {
@@ -25,7 +26,7 @@ public class XsltPerformanceTest extends
 
     @Test
     public void testXslt() throws InterruptedException {
-        template.setDefaultEndpointUri("direct:xslt");
+        ((DefaultProducerTemplate) template).setDefaultEndpointUri("direct:xslt");
 
         // warm up with 1.000 messages so that the JIT compiler kicks in
         execute(1000);