jautotest: Automatic Java class tester.

The jautotest package automatically creates black-box tests for a Java class based on type inspection of the class's method signatures. A modular toolbox of tests is provided and can be extended.

The algorithm:

  • Given a class, identify the methods to be tested according to criteria: name, visibility.
  • Instantiate the class if public instance methods are to be tested and a public constructor exists.
    • For each identified method:
    • Generate parameters according to some scheme, e.g. random, bounds-checks, etc..
    • Invoke the method with those parameters.
    • Record errors or exceptions.
  • Report test results.

Visit the project page on SourceForge for discussion, development and download.

Last modified: Sat Apr 7 16:23:13 EDT 2001