Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 3. Add the package funList ; declaration to the top of EmptyIntList.java , ConstIntList.java , and IntListVisitor.java , and move them into the funList subdirectory. You should be able to compile each file individually. Try it.

...

We can't run anything yet, because that's just a piece of the whole program.

  • 4. Create and save a JUnit test class called TestEmptyIntList . Do not make TestEmptyIntList.java part of the package. TestEmptyIntList.java does not have a package name, and is thus said to be in the no-name (or default) package.  Save TestEmptyList.java in lab10 subdirectory (right above funlist).

Add code to test the accept method of EmptyIntList . What can we do here?

...