home—lectures—recipe—hws—exams—D2L—zoom (snow day)
H0-java implementation
Java17+
Right after downloading the java files, make sure you can compile/run them. Either:
- call ExprTest.main()
(which runs tests by calling my own homebrewed assertEquals),
- or: run JUnit proper.
You'll need change make two small changes to
H0ExprTest.java, for this:
(a) re-comment-in the extends junit.… at the top,
and
(b) comment out the void assertEquals(…) method near the bottom.
The file is then a valid JUnit4 file.
If you get a compile-time error about “class junit.framework.TestCase not found”,
you'll need to make sure
(a) you have JUnit .jars downloaded (Junit4, vintage) and
(b) your CLASSPATH includes it.
See how-to-run-junit.html for further instructions.
home—lectures—recipe—hws—exams—D2L—zoom (snow day)
 This page licensed CC-BY 4.0 Ian Barland Page last generated | Please mail any suggestions (incl. typos, broken links) to ibarland radford.edu |
 |