Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CamelSpringTestSupport
✓ org.apache.camel.test.spring.CamelSpringTestSupport
Tests a Camel route using Spring test support.
import org.apache.camel.test.spring.CamelSpringTestSupport;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class MyTest extends CamelSpringTestSupport {
@Override
protected AbstractApplicationContext createApplicationContext() {
return new ClassPathXmlApplicationContext("META-INF/spring/camel-context.xml");
}
public void testRoute() throws Exception {
template.sendBody("direct:start", "Hello");
String result = consumer.receiveBody("mock:result", String.class);
assertEquals("Hello", result);
}
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.