LibraryToggle FramesPrintFeedback

Name

Mock — provides a declarative framework for testing routes

Overview

Mock endpoints provide a powerful declarative testing mechanism similar to jMock. It allows declarative expectations to be created on any Mock endpoint before a test begins. When the test is run, which typically fires messages to one or more endpoints, the expectations can be asserted in a test case to ensure the system worked as expected.

This allows you to test things like:

  • The correct number of messages are received on each endpoint

  • The correct payloads are received

  • The messages arrive on an endpoint in the right order

[Note]Note

The Test endpoint is a mock endpoint that uses a second endpoint to provide the list of expected message bodies and automatically sets up the mock endpoint assertions.

Comments powered by Disqus