| Term | Scope | Mocks |
|---|---|---|
| Unit Test (Solitary) | One Method / One Class | All direct dependencies. |
| Unit Test (Sociable) | One Feature / Multiple Classes | Only External Systems (DB/API). |
| Integration Test | System + External | No mocks (or very few). |
Example: We want to Unit Test the PaymentService class
- The
PaymentServicedepends on theWalletService- an internal class.