use of org.apache.camel.impl.PropertyPlaceholderDelegateRegistry 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.PropertyPlaceholderDelegateRegistry in project camel by apache.
the class BindyCarQuoteAndCommaDelimiterTest method setup.
@Before
public void setup() {
PropertyPlaceholderDelegateRegistry registry = (PropertyPlaceholderDelegateRegistry) context.getRegistry();
JndiRegistry reg = (JndiRegistry) registry.getRegistry();
reg.bind("defaultFactoryRegistry", new DefaultFactoryRegistry());
}
use of org.apache.camel.impl.PropertyPlaceholderDelegateRegistry in project camel by apache.
the class RegistryInjectionTest method testInjectedStrategy.
public void testInjectedStrategy() throws Exception {
CamelContext context = createCamelContext();
PropertyPlaceholderDelegateRegistry delegate = (PropertyPlaceholderDelegateRegistry) context.getRegistry();
assertTrue(delegate.getRegistry() instanceof JndiRegistry);
}
Aggregations