You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/08/10 08:58:38 UTC
[camel] branch main updated: camel-spring-batch - Make test faster (#11065)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new b8fcd7dcbe6 camel-spring-batch - Make test faster (#11065)
b8fcd7dcbe6 is described below
commit b8fcd7dcbe6391b556ecb610471665d086bb9cba
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Aug 10 10:58:31 2023 +0200
camel-spring-batch - Make test faster (#11065)
---
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();