@Test public void shouldCreateCamelContextUsingTheFactory() throws Exception { final BootUtil bootUtil = new BootUtil(); final Thread platform = bootUtil.getMicroservicePlatform(this.getClass().getPackage().getName()); platform.start(); Assert.assertTrue(semaphore.tryAcquire(1, TimeUnit.MINUTES), "Timed-out while waiting for the camel route deployment."); CamelContext context = (CamelContext) bootUtil.getContext().getProperties().get(CamelMicroserviceProvider.CAMEL_CONTEXT); Assert.assertSame(context, camelContext); platform.interrupt(); platform.join(); }
@Override public Context getContext() { return context; }
CamelMicroserviceProvider implements MicroserviceProvider, CamelSilverService { @Override public Context getContext() { return context; } }
CamelMicroserviceProvider implements MicroserviceProvider, CamelSilverService { @Override public Context getContext() { return context; }  }
CamelMicroserviceProvider implements MicroserviceProvider, CamelSilverService { @Override public Context getContext() { return context; }  @Override void initialize(final Context context); @Override Context getContext(); @Override void run(); @Override Set<Object> lookupMicroservice(final MicroserviceMetaData metaData); }
CamelMicroserviceProvider implements MicroserviceProvider, CamelSilverService { @Override public Context getContext() { return context; }  @Override void initialize(final Context context); @Override Context getContext(); @Override void run(); @Override Set<Object> lookupMicroservice(final MicroserviceMetaData metaData);  }