top down approach code example
Example: top down approach
Testing takes place from top to bottom.
High-level modules are tested first and
then low-level modules and finally
integrating the low-level modules to
a high level to ensure the system is
working as intended. Stubs are used as
a temporary module if a module is
not ready for integration testing.