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.
CamelTestSupport
✓ org.apache.camel.test.junit5.CamelTestSupport
Test Camel routes with JUnit 5
import org.apache.camel.test.junit5.CamelTestSupport;
import org.apache.camel.builder.RouteBuilder;
import org.junit.jupiter.api.Test;
public class MyRouteTest extends CamelTestSupport {
@Override
protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
from("direct:start").to("mock:result");
}
};
}
@Test
public void testRoute() throws Exception {
template.sendBody("direct:start", "Hello");
getMockEndpoint("mock:result").expectedMessageCount(1);
assertMockEndpointsSatisfied();
}
}
Audit
Dependencies
No dependency data recorded yet.