apputil
Class TestHarness
java.lang.Object
|
+--apputil.TestHarness
- public class TestHarness
- extends java.lang.Object
The TestHarness class is a very simple module that loads a class under
test that has implemented the Testable interface, and exercises it by
calling its TestUnit method. This method will return a true if the
test passes, or a false if it fails.
This test harness is very rudimentary. To extend the functionality of
this class, you may wish to add the following:
- User interface that allows the user to select class to test
- Logging capabilities (allow units under test to log errors
- more sophisticated handling of multiple test units
Method Summary |
static void |
main(java.lang.String[] args)
The main method runs the test harness. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TestHarness
public TestHarness()
main
public static void main(java.lang.String[] args)
- The main method runs the test harness. Any classes specified on the command
line will be loaded and tested.