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
timevalue is measured.Possible values are:
-
MILLISECONDS(default) -
MICROSECONDS -
MINUTES -
NANOSECONDS -
SECONDS -
HOURS
-