- A mock object is a simulated object that mimics the behavior of a real object in controlled ways. Mock objects are often employed in unit testing to scrutinize the performance of actual objects. In this context, an object is the smallest testable part of an application. A mock object makes use of the same interface as the element of code it is intended to imitate.
A mock object can be useful in place of a real object that:
- Runs slowly or inefficiently in practical situations
- Occurs rarely and is difficult to produce artificially
- Produces non-deterministic results
- Does not yet exist in a practical sense
- Is intended mainly or exclusively for conducting tests.
| LAST UPDATED: |
07 Mar 2007
|
 |
Read more about mock object:
|


 |
Do you have something to add to this definition? Let us know.
Send your comments to techterms@whatis.com
|

');
// -->
 |
 |
|  |
RELATED GLOSSARY TERMS
| Terms from Whatis.com − the technology online dictionary |
 |
unit testing
(SearchSoftwareQuality.com)
Unit testing is a software development process in which the smallest testable parts of an application, called units, are individually and...
|
 |
V-Model
(SearchSoftwareQuality.com)
The V-Model, also called the Vee-Model, is a product-development process originally developed in Germany for government defense projects......
|
|

|