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 c2d3e668a3d CAMEL-22148: Fixed test on windows
c2d3e668a3d is described below
commit c2d3e668a3d369f84e2033bc090e04e2c12889a5
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jun 12 13:07:11 2025 +0200
CAMEL-22148: Fixed test on windows
---
.../camel/processor/intercept/InterceptSendToEndpointDynamicTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/core/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSendToEndpointDynamicTest.java
b/core/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSendToEndpointDynamicTest.java
index 21a58bcb1f2..dfa93f82bac 100644
---
a/core/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSendToEndpointDynamicTest.java
+++
b/core/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSendToEndpointDynamicTest.java
@@ -85,8 +85,8 @@ public class InterceptSendToEndpointDynamicTest extends
ContextTestSupport {
@Override
public void configure() {
// START SNIPPET: e1
- // intercept sending to to either ./foo or ./bar directory
-
interceptSendToEndpoint(fileUri("(foo|bar)")).skipSendToOriginalEndpoint().to("mock:detour");
+ // intercept sending to, either ./foo or ./bar directory
+
interceptSendToEndpoint("^file:.*(foo|bar)$").skipSendToOriginalEndpoint().to("mock:detour");
from("direct:first").to(fileUri("foo")).to(fileUri("bar")).to(fileUri("cheese"))
.to("mock:result");