org.apache.jmeter.protocol.java.control.gui

Class JUnitTestSamplerGui

Implemented Interfaces:
ActionListener, ChangeListener, JMeterGUIComponent, Printable

public class JUnitTestSamplerGui
extends AbstractSamplerGui
implements ChangeListener, ActionListener

The JUnitTestSamplerGui class provides the user interface for the JUnitSampler.

Field Summary

Fields inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

namePanel

Constructor Summary

JUnitTestSamplerGui()
Constructor for JUnitTestSamplerGui

Method Summary

void
actionPerformed(ActionEvent evt)
Handle action events for this component.
void
clearGui()
void
clearMethodCombo()
void
configure(TestElement el)
void
configureMethodCombo()
TestElement
createTestElement()
Class[]
filterClasses(Class[] clz)
String
getLabelResource()
String[]
getMethodNames(Method[] meths)
Method[]
getMethods(Object obj, List list)
void
instantiateClass()
void
modifyTestElement(TestElement el)
void
showErrorDialog()
void
stateChanged(ChangeEvent event)
the current implementation checks to see if the source of the event is the filterpkg field.

Methods inherited from class org.apache.jmeter.samplers.gui.AbstractSamplerGui

createPopupMenu, getMenuCategories

Methods inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

clearGui, configure, configureTestElement, createTitleLabel, getComment, getDocAnchor, getName, getNamePanel, getNode, getPrintableComponent, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, makeTitlePanel, setComment, setEnabled, setName, setNode

Constructor Details

JUnitTestSamplerGui

public JUnitTestSamplerGui()
Constructor for JUnitTestSamplerGui

Method Details

actionPerformed

public void actionPerformed(ActionEvent evt)
Handle action events for this component. This method currently handles events for the classname combo box.
Parameters:
evt - the ActionEvent to be handled

clearGui

public void clearGui()
Specified by:
clearGui in interface JMeterGUIComponent
Overrides:
clearGui in interface AbstractJMeterGuiComponent

clearMethodCombo

public void clearMethodCombo()

configure

public void configure(TestElement el)
Specified by:
configure in interface JMeterGUIComponent
Overrides:
configure in interface AbstractJMeterGuiComponent

configureMethodCombo

public void configureMethodCombo()

createTestElement

public TestElement createTestElement()
Specified by:
createTestElement in interface JMeterGUIComponent

filterClasses

public Class[] filterClasses(Class[] clz)

getLabelResource

public String getLabelResource()
Specified by:
getLabelResource in interface JMeterGUIComponent

getMethodNames

public String[] getMethodNames(Method[] meths)

getMethods

public Method[] getMethods(Object obj,
                           List list)

instantiateClass

public void instantiateClass()

modifyTestElement

public void modifyTestElement(TestElement el)
Specified by:
modifyTestElement in interface JMeterGUIComponent

showErrorDialog

public void showErrorDialog()

stateChanged

public void stateChanged(ChangeEvent event)
the current implementation checks to see if the source of the event is the filterpkg field.

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.