The goal of this exercise is to improve your expertise with JUnit.
This is a "story" assignment; we will grade your writeup. But your JUnit has to run, or you won't receive any credit. For this reason, you need to provide evidence that your JUnit runs (eg screenshots).
Let's use some "real" Java code: Your assignment is to
equals() method in the
This week, I want you to base your tests on the source code,
and not the JavaDoc.
To do this you will have to:
AbstractListcan't be instantiated on its own, you will need to find or create a class that extends
equals()method. You can use a tool to assess this (eg EMMA or lots of others). Or, you can argue (by hand) that your tests "cover" the code. Note: we'll go into the notion of coverage in great detail later in the semester. Right now, I just want to get you thinking about it.
Grading will be based on: