Stub

A stub replaces a module when we do testing.

Stubs must be declared/invoked as the real module:

  • Same name as replaced module
  • Same parameter list as replaced module
  • Same return type as replaced module
  • Same modifiers (static, public or private) as replaced module

On the other hand, drivers are temporary replacements.