|Test Driven Development and Mock Observers
, submitted by
View Revision History
|The goal of this lab is for the students to practice test driven development activities. The language is Java and the test environment is JUnit, but is generalizable to other languages/tools. In this lab, the students use TDD to extend two classes which are related by the Observer design pattern. This requires the development of a relatively simple mock object, but is a good introduction to TDD and mock objects.
Lab: 2 hours
Process implementation (PRO.imp)
java programming and automated unit testing in a framework like JUnit
The student should be able to demonstrate test driven development strategies including the use of mock objects
automated unit testing
Test driven development
Source code to start lab
No alternate modules.
Log in to
rate this module.
Discuss this module in the forums.