Hi,
I'm testing Normalizer pattern with Camel and I'll be using a POJO to
normalize messages.

My route builder is using bean:normalizer and its methods:
 @Override
    protected RouteBuilder createRouteBuilder() {
        return new RouteBuilder() {
            public void configure() {
                from("direct:start")
                .choice()
                   
.when().xpath("/employee").to("bean:normalizer?method=employeeToPerson")
                   
.when().xpath("/customer").to("bean:normalizer?method=customerToPerson")
                .end()
                .to("mock:result");
            }
        };
    }

Can I inject the normalizer bean in my CamelNormalizerTest class that
extends CamelTestSupport using annotations and no xml files to define the
context ?

Thanks
-- 
View this message in context: 
http://old.nabble.com/Inject-a-bean-in-a-class-extending-CamelTestSupport-tp26711104p26711104.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to