CSSE 220 – Object-Oriented Software Development

Homework 11

  1. Read the Exam 1 instructions. Bring your questions about the exam — either form or content — to class.
  2. Do the unzipping, importing, and adding-to-your-repository of Exam1Problem1 and Exam1Problem2, as described in Step 6 of the above instructions.
  3. In Eclipse, examine the imported Exam1Problem1 project and the imported Exam1Problem2. Bring your questions about its code to class.
  4. Get some JUnit tests from me (David), as follows:

    1. In Eclipse, create a new JUnit 4 test class called BigRationalTestFromDavid, spelled exactly like that.
    2. Open this BigRationalTestFromDavid class. Copy its contents and paste them onto the BigRationalTestFromDavid class that you just created (overwriting the contents of what you just created).
    3. Examine the tests that you just copied and bring your questions to class.
      • You do NOT have to RUN the tests for this homework; save that for in-class work. Just READ and UNDERSTAND the tests for this homework.
  5. Get some JUnit tests from Curt Clifton, as follows:

    1. In Eclipse, create a new JUnit 4 test class called BigRationalTestFromCurt, spelled exactly like that.
    2. Open this BigRationalTestFromCurt class. Copy its contents and paste them onto the BigRationalTestFromCurt class that you just created (overwriting the contents of what you just created).
    3. Examine (briefly! — don't try to follow all the details) the tests that you just copied and bring your questions to class.
      • You do NOT have to RUN the tests for this homework; save that for in-class work. Just READ and UNDERSTAND the tests for this homework.