// Hack our RouteBuilder into the context. Bean definition / ComponentScan doesn't work for RouteBuilders.
@BeforeEach
    public void setUp() throws Exception {
        // Hack our RouteBuilder into the context. Bean definition / ComponentScan doesn't work for RouteBuilders.
        if (camelContext.getRoute(CamelCustomerRatingServiceAdapter.URI) == null) {
            camelContext.addRoutes(ccrsAdapter);
        }
        if (camelContext.getRoute(CamelCustomerRatingServiceClient.URI) == null) {
            camelContext.addRoutes(ccrsClient);
        }
    }
@BeforeEach
public void setUp() throws Exception {
// Hack our RouteBuilder into the context. Bean definition / ComponentScan doesn't work for RouteBuilders.
if (camelContext.getRoute(CamelCustomerRatingServiceAdapter.URI) == null) {
camelContext.addRoutes(ccrsAdapter);
@BeforeEach
public void setUp() throws Exception {
// Hack our RouteBuilder into the context. Bean definition / ComponentScan doesn't work for RouteBuilders.
if (camelContext.getRoute(CamelCustomerRatingServiceAdapter.URI) == null) {
camelContext.addRoutes(ccrsAdapter);
}
if (camelContext.getRoute(CamelCustomerRatingServiceClient.URI) == null) {
camelContext.addRoutes(ccrsClient);
}
}
@BeforeEach
public void setUp() throws Exception {
// Hack our RouteBuilder into the context. Bean definition / ComponentScan doesn't work for RouteBuilders.
if (camelContext.getRoute(CamelCustomerRatingServiceAdapter.URI) == null) {
camelContext.addRoutes(ccrsAdapter);
}
if (camelContext.getRoute(CamelCustomerRatingServiceClient.URI) == null) {
camelContext.addRoutes(ccrsClient);
}
}