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.

Re-exports§

pub use security_fixture::SecurityConfigFixture;

Modules§

security_fixture
Deterministic security config fixture for kernel E2E tests (unify-transport-auth, Task 1.10).

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

Enums§

CountBound
The recorded-request count bound of a RequestExpectation: exactly one bound form per expectation. Poll semantics per bound (arrivals only add, so the filtered count is monotone non-decreasing):
Expectation
A validation expectation. The grammar keys mirror the mock-testkit matcher rules: equals, regex, contains, startsWith, endsWith, exists, jsonSubset.