advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Download the sample code for this article.
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
 

Isolating Dependencies in Tests Using Mocks and Stubs

Unit tests are not "unit" tests if they test things other than the System Under Test (SUT). 


advertisement

o test a class, a developer must make sure that the class's dependencies won't interfere with its unit tests. Enter mocks and stubs.


It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com.
Already a member?



advertisement