| Namespace | http://www.mulesoft.org/schema/mule/munit |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/munit/1.0/mule-munit.xsd |
| Version | 1.0 |
| Minimum Mule Version | 3.2 |
Module for asserting in Munit tests.
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Assert module keeps a queue of expected payloads, so you can call assertNotSame and assertOnEquals inside a inbound flow you created for your tests. | |||||||||||
Check if an expression is false. | |||||||||||
Assert for a Not Null payload. | |||||||||||
Assert two objects are not equal
| |||||||||||
Assert Null Payload. | |||||||||||
Check that two objects are equal. | |||||||||||
Assert that the payload is equal to an expected value. | |||||||||||
Assert for a true expression. | |||||||||||
Fail assertion. | |||||||||||
Resets the module | |||||||||||
Defines the payload for testing. | |||||||||||
Defines a Null payload for testing. | |||||||||||
Checks that all the expected calls to assert has been done | |||||||||||
Assert module keeps a queue of expected payloads, so you can call assertNotSame and assertOnEquals
inside a inbound flow you created for your tests. The expected payload is taken from the peek of the queue
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| Description message to be shown in case of failure. |
Check if an expression is false.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| Optional. Description message to be shown in case of failure. | ||
| Boolean expression |
Assert for a Not Null payload.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| Optional. Description message to be shown in case of failure. | ||
| Payload |
Assert two objects are not equal
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| Optional. Description message | ||
| Optional. Expected value. If not provided the expected value is taken from the expected value Queue. | ||
| Real value |
Assert Null Payload.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| Optional. Description message to be shown in case of failure. | ||
| Payload |
Check that two objects are equal.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| Optional. Description message to be shown in case of failure. | ||
| Optional. Expected value. If not provided the expected value is taken from the expected value Queue. | ||
| Real value |
Assert that the payload is equal to an expected value.
The payloadIs-ref can be any Object/expression.
The assertion Fails if the payload is not equal to the payloadIs-ref
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| Optional. Description message to be shown in case of failure. | ||
| Expected Value | ||
| Payload |
Assert for a true expression.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| Optional. Description message to be shown in case of failure. | ||
| Boolean expression |
Fail assertion.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| Optional. Description message to be shown in case of failure. |
Resets the module
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. |
Defines the payload for testing.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| Payload |
Defines a Null payload for testing.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. |
Checks that all the expected calls to assert has been done
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. |