essobedo opened a new pull request, #8731:
URL: https://github.com/apache/camel/pull/8731

   Fixes https://issues.apache.org/jira/browse/CAMEL-18730
   
   ## Motivation
   
   After generating the route coverage of the tests, if we launch the maven 
command `mvn camel-report:route-coverage`, the plugin fails due to an import 
issue.
   
   ## Modifications:
   
   * Remove the bad import and replace it with `List.of`.
   
   ## Result
   
   Tested against the example `main`:
   
   ```
    mvn camel-report:route-coverage
   [INFO] Scanning for projects...
   [INFO] 
   [INFO] ------------< org.apache.camel.example:camel-example-main 
>-------------
   [INFO] Building Camel :: Example :: Main 3.20.0-SNAPSHOT
   [INFO] --------------------------------[ jar 
]---------------------------------
   [INFO] 
   [INFO] --- camel-report-maven-plugin:3.20.0-SNAPSHOT:route-coverage 
(default-cli) @ camel-example-main ---
   [INFO] Discovered 1 routes
   [INFO] Route coverage summary:
   
   Class:       org.apache.camel.example.MyRouteBuilder
   Route:       foo
   
     Line #       Count    Route
     ------       -----    -----
         25           2    from
         26           2      bean
         27           2      log
   
   Coverage: 3 out of 3 (100.0% / threshold 100.0%)
   Status: Success
   
   
   [INFO] 
   [INFO] Overall coverage summary:
   
   Coverage: 3 out of 3 (100.0% / threshold 0.0%)
   Status: Success
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to