use of org.wildfly.camel.test.spring.subA.HelloWorldService in project wildfly-camel by wildfly-extras.
the class SpringIntegrationProducerTest method testSendingOneWayMessage.
@Test
public void testSendingOneWayMessage() throws Exception {
SpringCamelContext camelctx = (SpringCamelContext) contextRegistry.getCamelContext("camel");
Assert.assertNotNull(camelctx);
ProducerTemplate template = camelctx.createProducerTemplate();
template.sendBody("direct:onewayMessage", "Greet");
HelloWorldService service = SpringUtils.getMandatoryBean(camelctx, HelloWorldService.class, "helloService");
Assert.assertEquals("We should call the service", service.getGreetName(), "Greet");
}
Aggregations