junit-project-3
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| junit-project-3 [2008/10/25 09:10] – jtkorb | junit-project-3 [2008/10/25 09:20] (current) – jtkorb | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== JUnit Testing in Project 3 ====== | ====== JUnit Testing in Project 3 ====== | ||
| - | [[http:// | + | Here are three JUnit classes to do unit testing on the [[http:// |
| - | To use these classes, download them to your Project 3 source directory and launch them as JUnit test classes. | + | * '' |
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | To use these classes, download them to your Project 3 source directory and launch them as JUnit test classes. | ||
| For example, from the command line on Lore (or the MC cluster), you can use the '' | For example, from the command line on Lore (or the MC cluster), you can use the '' | ||
| Line 12: | Line 16: | ||
| java junit.textui.TestRunner $1 | java junit.textui.TestRunner $1 | ||
| - | To run these three tests, you would type (at the UNIX command line prompt): | + | Then, to run these three tests, you would type (at the UNIX command line prompt): |
| $ javat WordNodeTest | $ javat WordNodeTest | ||
| Line 18: | Line 22: | ||
| $ javat HashListTest | $ javat HashListTest | ||
| - | These three test cases work (report no errors) on my version of Project 3, but I may have made some assumptions that you didn' | + | These three test cases report no errors |
junit-project-3.1224951056.txt.gz · Last modified: 2008/10/25 09:10 by jtkorb