Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18289

camel-xslt-saxon: XsltAggregationStrategyTest fails with removing the log definition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.18.0
    • 3.18.1, 3.19.0
    • camel-core
    • None
    • Unknown

    Description

      When removing the log in the route just like

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

      The test is failing with

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

      It seems that it is missing the last one content.

      Attachments

        Issue Links

          Activity

            People

              zhfeng Zheng Feng
              zhfeng Zheng Feng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: