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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content