|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.jet.gui.tester.DefaultTester
public class DefaultTester
The default tester class responsible for generating test cases
dynamically and displaying them. This class implements both the
view and the controller, and the view can be obtained by calling
the getView() method. The test cases are generated by
calling an external test case generation tool.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DefaultTester()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addClassFileChangeListener(ClassFileChangeListener l)
Registers the given class file change listener. |
protected TestCaseGenerationListener |
createTestCaseGenerationListener(edu.utep.cs.jet.gui.tester.EtMethod emeth)
Creates a test case generation listener for testing the given method. |
JMenu |
createTestMenu(FileActionFactory fa,
ToolActionFactory ta,
String title)
Creates a menu for the Test Menu. |
protected void |
doTest(Collection<?> meths)
Tests all the methods contained in the given collecton. |
protected void |
doTest(edu.utep.cs.jet.gui.tester.EtMethod emeth)
Tests the given method. |
protected boolean |
enableStatDialog()
Returns true if the test statistics dialog has to be enabled. |
ExplorerComponent |
getExplorerView()
Returns the view to be added to the explorer pane. |
OptionPanel |
getOptionPanel()
Returns the option panel of this tester. |
protected AbstractAction |
getPopTest()
Creates an action to generate test cases for the currently selected method or constructor. |
protected AbstractAction |
getPopTestAll()
Creates an action to generate test cases for all the methods and constructors. |
protected AbstractAction |
getPopTestDeclared()
Creates an action to generate test cases for the declared methods. |
protected AbstractAction |
getPopTestInherited()
Creates an action to generate test cases for the inherited methods. |
JComponent |
getView()
Returns the view of this tester. |
boolean |
loadFile(File file)
Loads the given class file for testing and returns true if the file was loaded successfuly. |
void |
setDropTarget(DropTarget dropTarget)
Associates a drop target with this tester so that its method names subpane accepts drops of class files. |
void |
setHideViewAction(AbstractAction action)
Given the action that hide this editor's view, provides an appropriate user interface for it, such as a popup menu. |
void |
setSourceCodeViewer(SourceCodeViewer viewer)
Sets the the source code viewer to locate and highlight the source code lines corresponding to the error messages obtained from the test case generation tool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTester()
| Method Detail |
|---|
public JComponent getView()
JPanel.
getView in interface Testerpublic ExplorerComponent getExplorerView()
getExplorerView in interface Testerpublic OptionPanel getOptionPanel()
getOptionPanel in interface Testerpublic boolean loadFile(File file)
loadFile in interface Testerpublic void addClassFileChangeListener(ClassFileChangeListener l)
addClassFileChangeListener in interface Testerpublic void setSourceCodeViewer(SourceCodeViewer viewer)
setSourceCodeViewer in interface Testerpublic void setDropTarget(DropTarget dropTarget)
setDropTarget in interface Testerpublic void setHideViewAction(AbstractAction action)
setHideViewAction in interface Testerprotected TestCaseGenerationListener createTestCaseGenerationListener(edu.utep.cs.jet.gui.tester.EtMethod emeth)
public JMenu createTestMenu(FileActionFactory fa,
ToolActionFactory ta,
String title)
createTestMenu in interface Testerprotected AbstractAction getPopTest()
protected AbstractAction getPopTestInherited()
protected AbstractAction getPopTestDeclared()
protected AbstractAction getPopTestAll()
protected void doTest(Collection<?> meths)
protected void doTest(edu.utep.cs.jet.gui.tester.EtMethod emeth)
protected boolean enableStatDialog()
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||