| Namespace | http://www.mulesoft.org/schema/mule/mpmock |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/mpmock/1.0/mule-mpmock.xsd |
| Version | 1.0 |
| Minimum Mule Version | 3.2 |
Module to mock message processors.
| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Define the assert process when the message processor is called | |||||||||||
Define what has to be returned when the message processor is called. | |||||||||||
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mpmock="http://www.mulesoft.org/schema/mule/mpmock"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/mpmock
http://www.mulesoft.org/schema/mule/mpmock/1.0/mule-mpmock.xsd">
<!-- here goes your flows and configuration elements -->
</mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necesary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
| Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Name | Default Value | Description | Optional. Give a name to this configuration so it can be later referenced. | |||||||
Component that we want to mock. |
|||||||||||
Define the assert process when the message processor is called
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. |
Define what has to be returned when the message processor is called.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The response that has be returned |