@Before public void createCamelContext() throws Exception { Weld weld = new Weld(); container = weld.initialize(); camelContext = container.instance().select(CdiCamelContext.class).get(); }
@Before public void setup() throws Exception { Weld weld = new Weld(); WeldContainer container = weld.initialize(); container.instance().select(CdiCamelContext.class).get().addRoutes(new CamelDroolsRoute()); frontend = container.instance().select(ServiceFrontend.class).get(); dispatcher = MockDispatcherFactory.createDispatcher(); dispatcher.getRegistry().addSingletonResource(frontend); }
@Override protected CamelContext createCamelContext() throws Exception { Weld weld = new Weld(); container = weld.initialize(); return container.instance().select(CdiCamelContext.class).get(); }