Expand description
In-process test broker, behind the testing feature.
LapinTestBroker implements the core TestableBroker contract over an in-memory router
so application handlers wired against RabbitMQ descriptors can be exercised without a
server: messages fan out synchronously to subscribers matched by exact queue name.
Scope: queue-name routing, settlement, headers, and buffered transactions. Exchange types,
bindings, dead-lettering, prefetch, and request/reply are transport behavior; exercise them
against a real server (see the crate’s integration tests and AMQP_TEST_URL).
Structs§
- Lapin
Test Broker - In-process broker for application tests: same descriptors, no
RabbitMQserver. - Lapin
Test Message - One in-process delivery.
- Lapin
Test Publisher - Publisher into the in-process router.
- Lapin
Test Subscriber - In-process subscriber on one queue name.