University of Houston
Department of Computer Science

In partial fulfillment of the Requirements for the Degree of
Master of Science

Anita Bennur
will defend her thesis

An Abstraction Based Mock Object Framework

Abstract
Mock objects are representatives for real objects that a piece of code under test collaborates with. The code can invoke methods on the mock which in turn behaves exactly as it has been trained to. Mock object frameworks seek to automate this process of creating and setting up a mock object. However, the frameworks in vogue today place an inordinate amount of stress on the implementation details of the collaboration between the code and the mock. This diverts the focus from the behavior of the mock to the implementation of the mock. While the idea of mock objects is a breakthrough for test driven development, its implementation in terms of frameworks can be improved.

In this thesis we propose a radical shift in the way mock object frameworks are perceived and used. We specify a means by which the behavior of the mock can be abstracted and created dynamically. In this approach the behavior of the mock is synthesized from the expression of its state. This abstraction oriented framework truly captures the essence of mock objects and also serves as, arguably, one of the most productive means to using mocks. The successful design and implementation of our framework provides the proof of concept for our hypotheses.

Date: 09 November, 2005
Time: 1:00 PM
Place: 550-PGH

Faculty, students, and the general public are invited.
Thesis Advisor: Dr. Venkat Subramaniam