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 2026/06/22 05:07:53 UTC

(camel) branch main updated: CAMEL-23796: fix oaipmh test to use valid simple predicate in loopDoWhile

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 118c108c915c CAMEL-23796: fix oaipmh test to use valid simple predicate in loopDoWhile
118c108c915c is described below

commit 118c108c915cce2a45a2298f8140d30c1e48e4f1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Jun 22 07:07:35 2026 +0200

    CAMEL-23796: fix oaipmh test to use valid simple predicate in loopDoWhile
    
    Co-Authored-By: Claude <no...@anthropic.com>
    Signed-off-by: Claus Ibsen <cl...@gmail.com>
---
 .../apache/camel/oaipmh/OAIPMHComponentProducerOnlyFirstLoopTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-oaipmh/src/test/java/org/apache/camel/oaipmh/OAIPMHComponentProducerOnlyFirstLoopTest.java b/components/camel-oaipmh/src/test/java/org/apache/camel/oaipmh/OAIPMHComponentProducerOnlyFirstLoopTest.java
index 516eb6b00a18..0e3cb6749631 100644
--- a/components/camel-oaipmh/src/test/java/org/apache/camel/oaipmh/OAIPMHComponentProducerOnlyFirstLoopTest.java
+++ b/components/camel-oaipmh/src/test/java/org/apache/camel/oaipmh/OAIPMHComponentProducerOnlyFirstLoopTest.java
@@ -56,7 +56,7 @@ public class OAIPMHComponentProducerOnlyFirstLoopTest extends CamelTestSupport {
                 from("direct:start")
                         .setHeader("CamelOaimphFrom", constant("2020-06-01T00:00:00Z"))
                         .setHeader("CamelOaimphOnlyFirst", constant("true"))
-                        .loopDoWhile(simple("${in.header.CamelOaimphResumptionToken} || ${body} == 'foo'"))
+                        .loopDoWhile(simple("${in.header.CamelOaimphResumptionToken} != null || ${body} == 'foo'"))
                         .to("oaipmh://localhost:" + mockOaipmhServer.getHttpPort() + "/oai/request")
                         .split(body())
                         .split(xpath(