Disadvantages

Let's see the following disadvantages of using the stub implementation in unit tests:

  • A change to an interface requires a change to a stub
  • Your stub must implement all methods, even those not used by a specific scenario
  • If a stub is reused, refactoring can break other tests
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.134.198