junit-project-3
This is an old revision of the document!
JUnit Testing in Project 3
Here are three JUnit classes to do unit testing on classes WordNode, WordList, and HashList.
To use these classes, download them to your Project 3 source directory and launch them as JUnit test classes.
To do this testing from the command line on Lore (or the MC cluster), you'll need to have the JUnit jar file in your CLASSPATH, as explained [here]. Or, you can use the javat
command located in the /homes/cs190m/student-bin directory (which should be in your path). The javat
command is just a short shell script:
#!/bin/sh CLASSPATH=".:/homes/cs190m/lib/junit-4.5.jar"; export CLASSPATH javac $1.java java junit.textui.TestRunner $1
junit-project-3.1224950233.txt.gz · Last modified: 2008/10/25 08:57 by jtkorb