BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
213 / 1048 · Module 6 — Mule Routing and Orchestration← prev⊞ allnext →

6.44Orchestration also improves MUnit testing

Suppose you have:

process-order-flow

that calls:

check-credit-subflow
upsert-salesforce-subflow

In MUnit, you can mock boundaries and test:

given credit approved
→ Salesforce upsert called

given credit rejected
→ Salesforce not called

This becomes much cleaner than testing a giant monolithic flow.

We'll exploit this in the MUnit module.