| 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, which is an internal class.