BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
628 / 1048 · Module 13 — MUnit← 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