Contact Us 1-800-596-4880

MUnit Sleep Processor

logo acb active Anypoint Code Builder

logo studio active Anypoint Studio

The MUnit Sleep processor pauses a MUnit test for a specified duration, simulating processing delays in the flow under test. Use it to test time-dependent behavior or introduce controlled waits between test steps.

<munit-tools:sleep time="100" timeUnit="MILLISECONDS"/>
time

Numerical value for the unit of time that your test waits before going to sleep.

timeUnit

The unit in which the time value is measured.

Possible values are:

  • MILLISECONDS (default)

  • MICROSECONDS

  • MINUTES

  • NANOSECONDS

  • SECONDS

  • HOURS