Is there a code coverage tool that understands Camel DSL?

Solution Verified - Updated -

Issue

In our tests, code coverage tools like coberatura can not tell if there is coverage for all the elements of the choice, only that this statement was tested. For example,

from("direct:a")
    .choice()
        .when(isPathA)
            .to...     
        .when(isPathB)
            .to...
        .when(noPath)
            .throwException(new SAXParseException("INVALID MESSAGE DATA",null))
    .end()        

Is there a tool that can look into these camel DSL lines of code and do that kind of determination?

Environment

  • Fuse Mediation Router
    • 2.x
  • JBoss Fuse
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.