|
JET | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| ClassFileChangeListener | A listener interface to notify the loading of a class file by the tester. |
| Constants | An interface defining various golobal constants. |
| DefaultTester.TestCaseList.ContentsChangeListener | Called when the contents has been changed. |
| StatisticsChangeListener | An interface to inform changes to the test statistics. |
| Tester | An interface to the built-in tester that can load a bytecode file to perfrom unit testing. |
| Class Summary | |
|---|---|
| DefaultTester | The default tester class responsible for generating test cases dynamically and displaying them. |
| DefaultTester.StatisticsDialog | A dialog window to display test case generation statistics. |
| DefaultTester.TestCaseCellRenderer | A cell renderer to render test cases displayed in the testcase subpane. |
| DefaultTester.TestCaseList | A special JList to contain test cases. |
| EtClass | A wrapper class to the java.lang.Class class to attach
testing-specific data. |
| EtMethod | A wrapper for the Method and Constructor
classes to add test-related data such as test cases. |
| EtTestCase | A wrapper to the TestCase class to add
test-related data such as the method under test and the test
result. |
| ExperimentTester | A test class that also collects and prints test statistics. |
| FileClassLoader | A special class loader to load a class from a given bytecode file. |
| JUnitExporter | A utility class to export generated test cases as JUnit tests. |
| JUnitExporter.JavaFileFilter | A file filter class to filter out non-java files. |
| JUnitExporter.NameGenerator | A class to generate unique test method names. |
| JUnitExporter.SimpleVarGenerator | A class to generate unique variable names. |
| MethodProperty | A pane to show the properties of the currently selected method. |
| MethodTree | A tree class to represent methods and constructors of the class under test. |
| MethodTree.Node | A class representing nodes of the tree. |
| Options | An option panel to set various tester options. |
| Options.TextFileFilter | A file filter class to filter out non-java files. |
| Preference | A utility class to store various user options for the tester. |
| Statistics | A class to keep track of test statistics, such as the numbers of test success and failures. |
| Statistics.Counter | A mutable counter to keep track of various test statistics, such as the numbers of test successes and failures. |
| TestingContext | A class to represent a testing context such as the method or constructor being tested. |
Contains the source code to interface with an external test case
generation tool. Currently, this package supports only the RandomTestCaseGenerator class. However, it can be
easily extended to support other test case generation tools.
The public interfaces and classes of this package are
Tester,
DefaultTester, and
ClassFileChangeListener, and
they can be used as follows.
// create a tester
Tester tester = new DefaultTester();
// get the view and add it to the main GUI
JComponent testerPane = tester.getView();
// ...
// register a listener, if needed
tester.addClassFileChangeListener(new ClassFileChangeListener() {
public void fileLoad(File file) {
System.out.println(file.getName() + " is loaded for testing!");
}
});
// load a class file to start testing its methods
loadFile(new File("Test.class"));
|
JET | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||