MuleSoft / Anypoint Code Builder
Anypoint Code Builder | MUnit Processor Picker Is Empty for Spy, Mock When, and Verify Call in a Multi-Root Workspace
- Reported
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Fixed
- —
- Reports
- 1
- Found in
- Anypoint Code Builder (Anypoint Extension Pack 1.29.0)
- Reference
- W-25026052
Summary
In Anypoint Code Builder, when a Mule project is opened as part of a multi-root VS Code workspace and is not the first folder of that workspace, the Processor Picker of the MUnit editor opens empty. The picker is used to select the target processor for Spy, Mock When, and Verify Call.
No processor can be selected and the Add button stays disabled. The breadcrumb at the top of the picker shows undefined > Behavior > Spy. The issue affects both new and existing processors.
The picker lists the Mule configuration files of the first folder in the workspace instead of the project that contains the open test suite. Depending on the workspace layout, the list is empty or shows flows from a different project. The same project opened as a single folder works as expected.
Workaround
Use one of these options until a fix is available:
- Open the Mule project as a single folder (File > Open Folder) while configuring Spy, Mock When, or Verify Call processors. The Processor Picker works as expected in this mode.
- Configure the processor directly in the XML code editor of the test suite, setting the processor attribute and the related with-attributes of munit-tools:spy, munit-tools:mock-when, or munit-tools:verify-call.
Steps to reproduce
- Create a multi-root workspace (File > Add Folder to Workspace) that contains at least two folders, where the Mule project under test is not the first folder (for example, a parent POM folder first, then the Mule project).
- In the Mule project, open an MUnit test suite under src/test/munit in the MUnit canvas.
- Select an existing Spy, Mock When, or Verify Call processor, or add a new one.
- Click + next to the Processor field.
Actual result: The Processor Picker is empty, the breadcrumb shows undefined > Behavior > Spy, and the Add button is disabled.
Expected result: The Processor Picker lists the processors from the Mule configuration files of the project that contains the test suite.
Error details
The MUnit Processor Picker opens with an empty list for Spy, Mock When, and Verify Call. The Add button stays disabled. Breadcrumb shown in the picker: undefined > Behavior > Spy No error is shown in the UI.
Status timeline
Nov 30, 2026
created · In Review · 1 reports
Nov 30, 2026
content changed · In Review · 1 reports