Search in sources :

Example 1 with DummyRestConsumerFactory

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

the class ManagedFromRestGetTest 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)

Example 2 with DummyRestConsumerFactory

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

the class LoadRestFromXmlTest 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 : JndiRegistry(org.apache.camel.impl.JndiRegistry) DummyRestProcessorFactory(org.apache.camel.component.rest.DummyRestProcessorFactory) DummyRestConsumerFactory(org.apache.camel.component.rest.DummyRestConsumerFactory)

Example 3 with DummyRestConsumerFactory

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

the class RouteIdFactoryTest 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 4 with DummyRestConsumerFactory

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

the class ManagedFromRestGetEmbeddedRouteTest 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)

Example 5 with DummyRestConsumerFactory

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

the class ManagedFromRestPlaceholderTest method createCamelContext.

@Override
protected CamelContext createCamelContext() throws Exception {
    SimpleRegistry registry = new SimpleRegistry();
    registry.put("dummy-test", new DummyRestConsumerFactory());
    CamelContext answer = new DefaultCamelContext(registry);
    PropertiesComponent pc = new PropertiesComponent();
    pc.setLocation("classpath:org/apache/camel/management/rest.properties");
    answer.addComponent("properties", pc);
    return answer;
}
Also used : CamelContext(org.apache.camel.CamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) SimpleRegistry(org.apache.camel.impl.SimpleRegistry) DummyRestConsumerFactory(org.apache.camel.component.rest.DummyRestConsumerFactory) PropertiesComponent(org.apache.camel.component.properties.PropertiesComponent) 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