Contact Us 1-800-596-4880

MUnit Storage Event Processors

logo acb active Anypoint Code Builder

logo studio active Anypoint Studio

MUnit Storage event processors manage temporary key-value storage during a MUnit test, letting you store, retrieve, and remove data across test steps. All stored data is cleared automatically when each test ends.

Store Operation

Stores the given data associated with the given key. If value not set, it defaults to the payload.

<munit-tools:store key="myKey">
    <munit-tools:value>#[person : { name: 'John', lastName: 'Smith' }]</munit-tools:value>
</munit-tools:store>

Retrieve Operation

Retrieves the data associated with the given key

<munit-tools:retrieve key="myKey"/>

Remove Operation

Removes and returns the data associated with the given key

<munit-tools:remove key="myKey"/>

Clear Stored Data Operation

Clears all stored data

<munit-tools:clear-stored-data/>