Skip to main content

Crate camel_test

Crate camel_test 

Source
Expand description

Testing utilities for rust-camel.

This crate provides helpers for writing integration tests against the rust-camel framework. It re-exports commonly needed types and provides test-specific utilities.

Structs§

CamelTestContext
Test harness that wraps CamelContext with teardown helpers, pre-registered components, and a shared MockComponent accessor.
CamelTestContextBuilder
Builder for CamelTestContext.
MockComponent
The Mock component is a testing utility that records every exchange it receives via its producer. It exposes helpers to inspect and assert on the recorded exchanges.
NoTimeControl
TimeController
Controls tokio’s mock time inside a test.
WithTimeControl