| jacareto.test.Test jacareto.test.JComponentTest jacareto.test.JTabbedPaneTest
JTabbedPaneTest | public class JTabbedPaneTest extends JComponentTest (Code) | | Test class for testing java.swing.JTabbedPane components. The following criteria
are tested by this class:
-
pane text - testes if the text on the tested tabbed pane is correct
-
selected index - testes if the selected index of the tested tabbed pane is correct
author: Christian Spannagel version: 1.2 |
Constructor Summary | |
public | JTabbedPaneTest(Environment env, String componentName, boolean isIgnoring, boolean isCorrecting, boolean hasFocus, boolean isEnabled, int selectedIndex, String paneText) Creates a new test with the specified values. | public | JTabbedPaneTest(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 | JTabbedPaneTest() Creates a new test with default values and no environment. |
JTabbedPaneTest | public JTabbedPaneTest(Environment env, String componentName, boolean isIgnoring, boolean isCorrecting, boolean hasFocus, boolean isEnabled, int selectedIndex, String paneText)(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: selectedIndex - index of the selected pane Parameters: paneText - the text on the tabbed pane |
JTabbedPaneTest | public JTabbedPaneTest(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.JToggleButton . |
getPaneText | public String getPaneText()(Code) | | DOCUMENT ME!
The expected text on the tested tabbed pane |
getSelectedIndex | public int getSelectedIndex()(Code) | | DOCUMENT ME!
The expected selected index of the tested tabbed pane. |
setPaneText | public void setPaneText(String string)(Code) | | DOCUMENT ME!
Parameters: string - the expected text on the tested tabbed pane |
setSelectedIndex | public void setSelectedIndex(int selectedIndex)(Code) | | DOCUMENT ME!
Parameters: selectedIndex - the expected selected index of the tested tabbed pane. |
|
|