...
- 3. Add the package
funList
; declaration to the top ofEmptyIntList.java
,ConstIntList.java
, andIntListVisitor.java
, and move them into thefunList
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 makeTestEmptyIntList.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. SaveTestEmptyList.java
in lab10 subdirectory (right abovefunlist
).
Add code to test the accept
method of EmptyIntList
. What can we do here?
...