| jacareto.test.Test jacareto.test.JComponentTest jacareto.test.AbstractButtonTest
All known Subclasses: jacareto.test.JMenuItemTest, jacareto.test.JToggleButtonTest,
AbstractButtonTest | public class AbstractButtonTest extends JComponentTest (Code) | | Test class for testing java.swing.AbstractButton components. The following
criteria are tested by this class:
-
button text - testes if the text on the tested button is correct
author: Juri Frommer version: 1.0 |
Constructor Summary | |
public | AbstractButtonTest(Environment env, String componentName, boolean isIgnoring, boolean isCorrecting, boolean hasFocus, boolean isEnabled, String btnText) Creates a new test with the specified values. | public | AbstractButtonTest(Environment env, Components components, Component component) Creates a new test with the values of the given component and default values.
Parameters: env - the environment. Parameters: components - the components instance Parameters: component - the component to test. | public | AbstractButtonTest() Creates a new test with default values and no environment. |
AbstractButtonTest | public AbstractButtonTest(Environment env, String componentName, boolean isIgnoring, boolean isCorrecting, boolean hasFocus, boolean isEnabled, String btnText)(Code) | | Creates a new test with the specified values.
Parameters: env - env the environment Parameters: componentName - the name of the component Parameters: isIgnoring - if the test result should be ignored Parameters: isCorrecting - if the values of the component should be corrected when the test hasfailed Parameters: hasFocus - if the component has the focus Parameters: isEnabled - if the component is set enabled Parameters: btnText - the text on the button |
AbstractButtonTest | public AbstractButtonTest(Environment env, Components components, Component component)(Code) | | Creates a new test with the values of the given component and default values.
Parameters: env - the environment. Parameters: components - the components instance Parameters: component - the component to test. Must be of typejavax.swing.AbstractButton . |
getButtonText | public String getButtonText()(Code) | | DOCUMENT ME!
The expected text of the tested button |
setButtonText | public void setButtonText(String string)(Code) | | Specifies The expected text of the tested button
Parameters: string - DOCUMENT ME! |
|
|