MCS 270: Object-Oriented Software Development (Spring 2010)

Check-off Lab 2


Objective

The objective if this lab is to give you experience using the unit-testing capabilities available in MyEclipse. In particular, you will use version 3.8.x of JUnit.

Links

Tasks

Briefly, my goal for you is to work through the example in JUnit Test Infected: Programmers Love Writing Tests. More specifically, I want you to do the following tasks:

  1. Download junit3.8.2.zip and expand it; then set it up in a project called Money, as I did in class, and show me that it runs completely. Please note that MyEclipse does most of the work in runnning the tests.
    Check-off: Show me that you have gotten this test running.
  2. Now create another project called MyMoney, and build up the project incrementally, as I did (use more sensible names, like I did). I will expect you to get through at least up to (but not including) the point where they start MoneyBag to get this check-off.
    Check-off: Show me that you have done this.
  3. Optional check-off: I will give you another check-off if you complete the all of the code in this document.