Getting started Community Training Tutorials Documentation APIs, AI & Tools
<munit-tools:fail
message="This should fail"/>
Anypoint Code Builder
Anypoint Studio
The MUnit Fail event processor forces a MUnit test to fail at a specific point in the flow, which is useful for validating that certain code paths are never reached. Use it to catch unexpected execution paths during testing.
<munit-tools:fail
message="This should fail"/>
The message field is optional and defines the error message to print when the assertion fails.
The processor throws a MUNIT-TOOLS:ASSERTION_ERROR.