By default, MUnit runs with the Mule Runtime corresponding to the minMuleVersion element of the mule-artifact.json file. If we have a Mule Runtime patch available, we need a way to get MUnit to override the default version and use the patched version. This can be done either from your Maven configuration or directly within Studio.
NOTE: This option has been available since MUnit Studio Plugin 2.3.0 (Mule 4).
This procedure explains in more details the process explained in the MUnit Runtime Patching docs.
<plugin>
<groupId>com.mulesoft.munit.tools</groupId>
<artifactId>munit-maven-plugin</artifactId>
<version>${munit.version}</version>
<executions>
<execution>
<id>test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<runtimeVersion>4.3.0-PATCH1</runtimeVersion>
</configuration>
</plugin>
NOTE: In the example above, the version of the runtime is 4.3.0-PATCH1. This will need to be replaced with the required patched version like 4.3.0-hf3 (earlier patch nomenclature) or 4.3.0-20200925 (Munit distribution ID). You can find the Munit distribution ID for each monthly release from release notes (search for "MUnit distribution ID"). If you have further queries on identifying the Munit Distribution ID please reach out to the MuleSoft Support team.NOTE: In the example above, the version of the runtime is 4.3.0-20200727. This will need to be replaced with the required patched version. You can get this information from the MuleSoft Support team.
If you already set the runtimeVersion attribute in the pom.xml file as shown in the “From Maven” section above, you can click the “Load configuration from pom file” button (shown in the image above). This will automatically populate the version on the Mule Runtime Version field.
001114586

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.