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).
by Claudio Lasalla
June 15, 2009
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?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!