| java.lang.Object | |
| ↳ | org.mule.munit.AssertModule |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Module for asserting in Munit tests.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| expectedPayload | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
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
| value | Description message to be shown in case of failure. |
|---|
Check if an expression is false.
| message | Description message to be shown in case of failure. |
|---|---|
| condition | Boolean expression |
Assert for a Not Null payload.
| message | Description message to be shown in case of failure. |
|---|---|
| payload | Payload |
Assert two objects are not equal
| message | Description message |
|---|---|
| expected | Expected value. If not provided the expected value is taken from the expected value Queue. |
| value | Real value |
Assert Null Payload.
| message | Description message to be shown in case of failure. |
|---|---|
| payload | Payload |
Check that two objects are equal.
| message | Description message to be shown in case of failure. |
|---|---|
| expected | Expected value. If not provided the expected value is taken from the expected value Queue. |
| value | 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
| message | Description message to be shown in case of failure. |
|---|---|
| payloadIs | Expected Value |
| payload | Payload |
Assert for a true expression.
| message | Description message to be shown in case of failure. |
|---|---|
| condition | Boolean expression |
Fail assertion.
| message | Description message to be shown in case of failure. |
|---|
Resets the module
Defines the payload for testing.
| payload | Payload |
|---|
Defines a Null payload for testing.
Checks that all the expected calls to assert has been done