This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch fast-batch in repository https://gitbox.apache.org/repos/asf/camel.git
commit c0d3d0994677662fa967ea682fa0f1d71c30c383 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Aug 10 09:58:39 2023 +0200 camel-spring-batch - Make test faster --- components/camel-spring-batch/pom.xml | 1 + .../camel/component/spring/batch/SpringBatchEndpointTest.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/camel-spring-batch/pom.xml b/components/camel-spring-batch/pom.xml index 25954ce2125..7c808347935 100644 --- a/components/camel-spring-batch/pom.xml +++ b/components/camel-spring-batch/pom.xml @@ -31,6 +31,7 @@ <description>Camel Spring Batch support</description> <properties> + <camel.surefire.parallel>true</camel.surefire.parallel> </properties> <dependencies> diff --git a/components/camel-spring-batch/src/test/java/org/apache/camel/component/spring/batch/SpringBatchEndpointTest.java b/components/camel-spring-batch/src/test/java/org/apache/camel/component/spring/batch/SpringBatchEndpointTest.java index 7a24d5d31fd..0d61747856a 100644 --- a/components/camel-spring-batch/src/test/java/org/apache/camel/component/spring/batch/SpringBatchEndpointTest.java +++ b/components/camel-spring-batch/src/test/java/org/apache/camel/component/spring/batch/SpringBatchEndpointTest.java @@ -112,7 +112,7 @@ public class SpringBatchEndpointTest extends CamelTestSupport { errorEndpoint.expectedMessageCount(1); //dynamic job should fail as header is not present and the job is dynamic - sendBody("direct:dyanmic", "Start the job, please."); + sendBody("direct:dyanmic?block=false", "Start the job, please."); mockEndpoint.assertIsSatisfied(); mockEndpoint.assertIsSatisfied(); } @@ -125,7 +125,7 @@ public class SpringBatchEndpointTest extends CamelTestSupport { //dynamic job should fail as header is present but the job does not exists header(SpringBatchConstants.JOB_NAME).append("thisJobDoesNotExsistAtAll" + Date.from(Instant.now())); - sendBody("direct:dyanmic", "Start the job, please."); + sendBody("direct:dyanmic?block=false", "Start the job, please."); mockEndpoint.assertIsSatisfied(); mockEndpoint.assertIsSatisfied(); @@ -140,7 +140,7 @@ public class SpringBatchEndpointTest extends CamelTestSupport { final Map<String, Object> headers = new HashMap<>(); headers.put(SpringBatchConstants.JOB_NAME, "dynamicMockjob"); - sendBody("direct:dynamic", "Start the job, please.", headers); + sendBody("direct:dynamic?block=false", "Start the job, please.", headers); mockEndpoint.assertIsSatisfied(); errorEndpoint.assertIsSatisfied();