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

Zheng Feng updated CAMEL-18289:
-------------------------------
    Affects Version/s: 3.18.0

> 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
>            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)

Reply via email to