View Module

An error occurred while attempting to get the requested module. Cannot open database "AspNetForums" requested by the login. The login failed. Login failed for user 'swenet'. at AspNetForums.Data.SqlDataProvider.GetRatingForUser(String username, Int32 parentID) at AspNetForums.Ratings.GetRatingForUser(String username, Int32 parentID) at SwenetDev.ModuleRatingsControl.getRatingForUser(String username, ModuleRatingInfo ratingInfo) at SwenetDev.viewModule.Page_Load(Object sender, EventArgs e)

General Information

Title Test Driven Development and Mock Observers
Version Info Version 1 , submitted by wellington on 10/20/2005 at 10:23 PM
View Revision History
Module Identifier wellington.2005.1
Abstract 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.
Size Lab: 2 hours

SEEK Categories

  1. Process implementation (PRO.imp)


  1. Carol Wellington


  1. java programming and automated unit testing in a framework like JUnit

Learning Objectives

  1. Application - The student should be able to demonstrate test driven development strategies including the use of mock objects


  1. automated unit testing
  2. mock objects
  3. Test driven development


  1. Lab instructions (HTM) 0.00/5 [Rate Material]

  2. Source code to start lab (Winzip) 0.00/5 [Rate Material]


See Also...

No alternate modules.

Other Resources

No resources.


Number of Ratings:   0

Log in to rate this module.


Discuss this module in the forums.

Related Modules