mock object
Home > Software Quality Definitions - Mock object
SearchSoftwareQuality.com Definitions (Powered by WhatIs.com)
EMAIL THIS
LOOK UP TECH TERMS Powered by: WhatIs.com
Search listings for thousands of IT terms:
Browse tech terms alphabetically:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z #

mock object



Word of the Day
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


DEFINITION -

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:
- IBM discusses some practical aspects of unit testing with mock objects.
- DevX offers alternatives to the use of mock objects in Extreme Programming.
- JSMock is an open-source library for testing JavaScript code using mock objects.


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


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Software testing deliverables: Developing a software testing strategy
David Johnson updates his popular tip on software testing deliverables with detailed information on forming a test strategy.
Evaluating the benefits of automated software testing
Depending on your role in your development team, your definition of what "automated testing" is will change. Regardless, automated testing should be...
Adopting continuous integration brings agility, other benefits
CI practices can give your development organization a head start on increasing agility, but adoption is still not widespread.

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......




Software Quality - mock object Articles
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2006 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts