Hands on Testing Java
Creating a Test Case Class
These directions are useful for CS 108 at Calvin College in Fall
2005.
- Select the package of the project where you
want the new class to go.
- Right click and select New -> Class, or use New Class button
on tool bar.
- In the New Java Class dialog box
- Make sure the package name is correct.
- Type in the name of the class in the Name field.
- Hit the Browse... button by the Superclass
field:
- Type in "TestCase" (without the quotes) in the top field.
- Select the TestCase class that shows up.
- Hit the OK button.
- Hit the Finish button.