Computer Science Department, Bucknell University

CSCI 479 JUnit - Unit Testing in Java
Fall 2009
Professor Dan Hyde


  1. To get started in JUnit, read the classic web page by Kent Beck and Erich Gamma Test Infected: Programmers Love Writing Tests. The examples use an old version of JUnit so don't study the examples. Read the web page for their ideas on testing and approach to testing.

  2. Read carefully JUnit Cookbook that is based on latest version of JUnit called JUnit 4

  3. Read and study carefully the JUnit 4 examples in JUnit 4 in 60 seconds.

  4. Study carefully the Sample program to demo JUnit 4 and do the exercise.

  5. Exercise on using JUnit 4 in Eclipse on your own.

Resources:


Page maintained by Dan Hyde, hyde at bucknell.edu Last update October 28, 2009
Back to CSCI 479's home page.