JET

edu.utep.cs.jet.gui.tester
Interface Tester

All Known Implementing Classes:
DefaultTester, ExperimentTester, Parser

public interface Tester

An interface to the built-in tester that can load a bytecode file to perfrom unit testing.

Author:
Yoonsik Cheon

Method Summary
 void addClassFileChangeListener(ClassFileChangeListener l)
          Registers the given class file change listener.
 JMenu createTestMenu(FileActionFactory fa, ToolActionFactory ta, String title)
          Creates a menu for the Test Menu.
 ExplorerComponent getExplorerView()
          Returns the view to be added to the explorer pane.
 OptionPanel getOptionPanel()
          Returns the option panel of this tester.
 JComponent getView()
          Returns the view of this tester.
 boolean loadFile(File classFile)
          Loads the given class file file to this tester, and returns true if the file was successfully opened.
 void setDropTarget(DropTarget dropTarget)
          Associates a drop target with this tester so that it accepts drops of class files.
 void setHideViewAction(AbstractAction action)
          Given the action that closes 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.
 

Method Detail

getView

JComponent getView()
Returns the view of this tester. The returned view may be added to other containder widgets, such as JPanel.


getExplorerView

ExplorerComponent getExplorerView()
Returns the view to be added to the explorer pane. Null is returned if no such view is provided by this tester.


getOptionPanel

OptionPanel getOptionPanel()
Returns the option panel of this tester.


loadFile

boolean loadFile(File classFile)
Loads the given class file file to this tester, and returns true if the file was successfully opened. The public methods of the loaded class will be displayed by the tester.


addClassFileChangeListener

void addClassFileChangeListener(ClassFileChangeListener l)
Registers the given class file change listener. The listener will be notified when a new class file is loaded by the tester.


setSourceCodeViewer

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.


setDropTarget

void setDropTarget(DropTarget dropTarget)
Associates a drop target with this tester so that it accepts drops of class files.


setHideViewAction

void setHideViewAction(AbstractAction action)
Given the action that closes this editor's view, provides an appropriate user interface for it, such as a popup menu.


createTestMenu

JMenu createTestMenu(FileActionFactory fa,
                     ToolActionFactory ta,
                     String title)
Creates a menu for the Test Menu.


JET

JET is Copyright (C) 2005-2008 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.