A "Login" module that needs to verify credentials against a "Database" module. The Problem: The Database module isn't finished yet.
A stub is a dummy module that simulates a . It is used when the main module is ready for testing, but the sub-modules it depends on are still being built. Examples Of Stubs And Drivers In Software Testing
It is passive; it waits to be called and returns hardcoded or predefined data. Example Scenario: A "Login" module that needs to verify credentials
Primarily used in Top-Down Integration Testing . Examples Of Stubs And Drivers In Software Testing