Contact Us 1-800-596-4880

MUnit Fail Event Processor

logo acb active Anypoint Code Builder

logo studio active 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.