Getting started Community Training Tutorials Documentation APIs, AI & Tools
<munit-tools:sleep time="100" timeUnit="MILLISECONDS"/>
Sleep Processor
Sleep Processor
Anypoint Code Builder
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