Search in sources :

Example 6 with DummyRestConsumerFactory

use of org.apache.camel.component.rest.DummyRestConsumerFactory in project camel by apache.

the class CamelContextAddRestDefinitionsFromXmlTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    jndi.bind("dummy-rest", new DummyRestConsumerFactory());
    jndi.bind("dummy-rest-api", new DummyRestProcessorFactory());
    return jndi;
}
Also used : DummyRestProcessorFactory(org.apache.camel.component.rest.DummyRestProcessorFactory) DummyRestConsumerFactory(org.apache.camel.component.rest.DummyRestConsumerFactory)

Example 7 with DummyRestConsumerFactory

use of org.apache.camel.component.rest.DummyRestConsumerFactory in project camel by apache.

the class ManagedRestRegistryTest method createCamelContext.

@Override
protected CamelContext createCamelContext() throws Exception {
    SimpleRegistry registry = new SimpleRegistry();
    registry.put("dummy-test", new DummyRestConsumerFactory());
    return new DefaultCamelContext(registry);
}
Also used : SimpleRegistry(org.apache.camel.impl.SimpleRegistry) DummyRestConsumerFactory(org.apache.camel.component.rest.DummyRestConsumerFactory) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext)

Aggregations

DummyRestConsumerFactory (org.apache.camel.component.rest.DummyRestConsumerFactory)7 DefaultCamelContext (org.apache.camel.impl.DefaultCamelContext)4 SimpleRegistry (org.apache.camel.impl.SimpleRegistry)4 DummyRestProcessorFactory (org.apache.camel.component.rest.DummyRestProcessorFactory)3 CamelContext (org.apache.camel.CamelContext)1 PropertiesComponent (org.apache.camel.component.properties.PropertiesComponent)1 JndiRegistry (org.apache.camel.impl.JndiRegistry)1