Contact Us 1-800-596-4880

MUnit Dynamic Directories

logo acb active Anypoint Code Builder

logo studio active Anypoint Studio

The MUnit dynamic directories feature provides the munit.temporary.directory property to create and manage temporary files and folders during a MUnit test. The temporary directory is deleted automatically at the end of each test.

For example, using the file connector, you could configure the working directory as follows:

<file:config name="tmpDir">
    <file:connection workingDir="${munit.temporary.directory}"/>
</file:config>

And then use it to create files/folders inside it:

<file:create-directory config-ref="tmpDir" directoryPath="example"/>

See Also