1.8. Stubbing and Mocking

Unit tests need to isolate the method-under-test, which involves techniques such as stubbing and mocking.

Sureassert provides several ways of isolating the code you want to test from external dependencies, all of which are specified declaratively via Exemplar properties or other annotations. See the Test Isolation section for details of how to isolate unit tests with Sureassert UC.

Previous Page   |   Next Page   |   Table of Contents

Comments are closed.