BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
10 / 18 · Module 13 — MUnit · filtered: cheatsheet← prev⊞ allnext →

13.42Contract tests

Suppose Salesforce System API promises:

{
  "customerId": "string",
  "status": "string"
}

MUnit can assert the System API's output.

External automation can validate against OpenAPI schema.

Both layers are valuable:

MUnit
→ internal implementation correctness

API contract test
→ consumer-facing contract correctness