You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zheng Feng (Jira)" <ji...@apache.org> on 2022/07/26 09:42:00 UTC

[jira] [Assigned] (CAMEL-18289) camel-xslt-saxon: XsltAggregationStrategyTest fails with removing the log definition

     [ https://issues.apache.org/jira/browse/CAMEL-18289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zheng Feng reassigned CAMEL-18289:
----------------------------------

    Assignee: Zheng Feng

> camel-xslt-saxon: XsltAggregationStrategyTest fails with removing the log definition
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-18289
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18289
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 3.18.0
>            Reporter: Zheng Feng
>            Assignee: Zheng Feng
>            Priority: Major
>
> When removing the log in the route just like
> {code:java}
> from("file:src/test/resources/org/apache/camel/util/toolbox?noop=true&sortBy=file:name&antInclude=*.xml")
>         .routeId("route1").noAutoStartup()
>         .aggregate(new XsltSaxonAggregationStrategy("org/apache/camel/util/toolbox/aggregate.xsl"))
>         .constant(true)
>         .completionFromBatchConsumer()
>         //.log("after aggregate body: ${body}")
>         .to("mock:transformed");
> {code}
> The test is failing with
> {noformat}
> [ERROR] org.apache.camel.component.xslt.saxon.XsltAggregationStrategyTest.testXsltAggregationDefaultProperty  Time elapsed: 1.044 s  <<< FAILURE!
> java.lang.AssertionError: mock://transformed Body of message: 0. Expected: <<?xml version="1.0" encoding="UTF-8"?><item>ABC</item>> but was: <<?xml version="1.0" encoding="UTF-8"?><item>AB</item>>
> {noformat}
> It seems that it is missing the last one content.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)