use of org.apache.camel.Component in project camel by apache.
the class DefaultCamelContextTest method testGetComponents.
public void testGetComponents() throws Exception {
DefaultCamelContext ctx = new DefaultCamelContext();
ctx.disableJMX();
Component component = ctx.getComponent("bean");
assertNotNull(component);
List<String> list = ctx.getComponentNames();
assertEquals(1, list.size());
assertEquals("bean", list.get(0));
}
use of org.apache.camel.Component in project ddf by codice.
the class CatalogComponentTest method testCatalogComponentResolver.
@Test
public void testCatalogComponentResolver() throws Exception {
CatalogComponentResolver resolver = new CatalogComponentResolver(catalogComponent);
assertNotNull(resolver);
Component component = resolver.resolveComponent(CatalogComponent.NAME, null);
assertNotNull(component);
component = resolver.resolveComponent("invalid_name", null);
assertNull(component);
}
Aggregations