use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class FileConsumerFileFilterTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("myFilter", new MyFileFilter<Object>());
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class FromRestOptionsTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("dummy-rest", new DummyRestConsumerFactory());
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class RefComponentTest method testRef.
public void testRef() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedBodiesReceived("Hello World");
PropertyPlaceholderDelegateRegistry delegate = (PropertyPlaceholderDelegateRegistry) context.getRegistry();
JndiRegistry jndi = (JndiRegistry) delegate.getRegistry();
bindToRegistry(jndi);
template.sendBody("ref:foo", "Hello World");
assertMockEndpointsSatisfied();
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class FromRestGetEmbeddedRouteTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("dummy-test", new DummyRestConsumerFactory());
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class FromRestDuplicateTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("dummy-rest", new DummyRestConsumerFactory());
return jndi;
}
Aggregations