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)
|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.