Mock Objects | Glossary

 

Definition

Mock Objects are simulated objects that mimic the behavior of actual objects under controlled conditions. They are generally created by a programmer to test the behavior and patterns of the corresponding real-life object. They are generally created in the context of automated unit testing. Overall, they are a controversial and much- debated part of development, having both detractors and supporters.

Further Reading

  • “Mock Object Testing with Examples Using EasyMock”(book), by Scott McMaster.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.