BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
598 / 1048 · Module 13 — MUnit← prev⊞ allnext →

13.12Bad over-verification

Suppose flow currently is:

Set Variable
↓
Transform
↓
Logger
↓
Salesforce

Test verifies:

Set Variable called once
Transform called once
Logger called once
Salesforce called once

Then you refactor implementation without changing behavior.

Every test breaks.

That's not useful.

Prefer verifying meaningful boundaries:

Salesforce called
Billing not called
specific subflow selected
event published