Department of Computer Science at UH

University of Houston

Department of Computer Science

In Partial Fulfillment of the Requirements for the Degree of
Master of Science

Len Choo Ong

Will defend his thesis

Alternate Code Generation for Abstraction based mock objects

Abstract

Previous work in the area of Mock objects and unit testing proposed an Abstraction Based framework for creating Mock objects. While this approach has its advantages, it suffers from some significant disadvantages. Namely, the creation of mock was very slow and the dependency on State Machine Compiler restricted how specification of state transition for the Mock objects.

In this thesis, we propose an approach to map the state table into mock object on the fly. Our solution addresses both the drawbacks of previous work. By using dynamic code generation capabilities in .NET we generate a state based class that maintains the state of the mock. The dynamic generation of mock using this approach proves to be faster, taking less than 100ms. Further more, our new approach allows us to specify multiple state transitions, making the Mock object effective for unit testing.
Date: 25, MONTH: September, 2006
Time: 2:00 PM
Place: 550-PGH

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