SWEnet

View Module

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
Comments

SEEK Categories

  1. Process implementation (PRO.imp)

Authors

  1. Carol Wellington

Prerequisites

  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

Topics

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

Materials

  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.


Ratings

Number of Ratings:   0

Log in to rate this module.


Discussions

Discuss this module in the forums.