A Stub is a type of test double that simulates the behaviour of software components that are not yet implemented or available during testing. Stubs provide predefined responses to calls made during tests.
Key Features:
- Allow isolated testing of components without dependencies.
- Simplify integration tests by replacing incomplete modules.
- Help verify interactions between components during development.
Stubs are useful for early development phases when certain parts of the system may not be ready for full integration testing.
