Package diva.util.jester
A small package for writing test suites for Java classes. This package
is designed to make it easy to write unit test suites and test suites
for object collaborations. In particular, it encourages the use of
factory classes for creating objects-under-test. Consistent use of
factories:
- Enables test suites for abstract classes and interfaces to be written.
- Enables tests to be run over instances of a subtree of classes, provided that classes conform to the "inheritance is extension" principle of OO design.
-
Class Summary Class Description EventPlayer EventPlayer uses the java.awt.robot API to inject streams of events into a component.EventRecorder EventRecorder listens to all of the mouse and keyboard events on a given component and records these into a sequence which can then be played back using an EventPlayer object.TestCase An abstract superclass for all test cases.TestHarness A test harness.TestSuite The abstract superclass of test suites.TestUtilities Utility functions to make tests easier to write. -
Exception Summary Exception Description TestFailedException An exception that is thrown when a test produces an incorrect result.