MUnit Message Processors

MUnit has a set of dedicated message processors aimed to validate, assert and mock the content and status of the Mule message so you can run automatic tests against your Mule application.

The MUnit message processors allow you to:

  1. Simulate a specific behavior for a message processor with a Mock Message Processor.

  2. Lay out a Mule message using the Set Message Processor.

  3. Define a verification to validate a message processor’s call with a Verify Message Processor.

  4. Inspect the status of the mule message before and after it reaches certain Message Processor through a Spy Message Processor.

  5. Validate the content and status of the Mule message with the Assert Message Processor.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub
Give us your feedback!
We want to build the best documentation experience for you!
Help us improve with your feedback.
Take the survey!