public class JSplitPaneFixture extends ComponentFixture<JSplitPane> implements CommonComponentFixture, JComponentFixture, JPopupMenuInvokerFixture
JSplitPanes:
BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY, robot, target| Constructor and Description |
|---|
JSplitPaneFixture(Robot robot,
JSplitPane target)
Creates a new
. |
JSplitPaneFixture(Robot robot,
String spinnerName)
Creates a new
. |
| Modifier and Type | Method and Description |
|---|---|
JSplitPaneFixture |
click()
Simulates a user clicking this fixture's
. |
JSplitPaneFixture |
click(MouseButton button)
Simulates a user clicking this fixture's
. |
JSplitPaneFixture |
click(MouseClickInfo mouseClickInfo)
Simulates a user clicking this fixture's
. |
Object |
clientProperty(Object key)
Returns the client property stored in this fixture's
, under the given key. |
JSplitPaneFixture |
doubleClick()
Simulates a user double-clicking this fixture's
. |
protected void |
driver(JSplitPaneDriver newDriver)
Sets the
to be used by this fixture. |
JSplitPaneFixture |
focus()
Gives input focus to this fixture's
. |
JSplitPaneFixture |
moveDividerTo(int location)
Simulates a user moving the divider of this fixture's
. |
JSplitPaneFixture |
pressAndReleaseKey(KeyPressInfo keyPressInfo)
Simulates a user pressing given key with the given modifiers on this fixture's
. |
JSplitPaneFixture |
pressAndReleaseKeys(int... keyCodes)
Simulates a user pressing and releasing the given keys on this fixture's
. |
JSplitPaneFixture |
pressKey(int keyCode)
Simulates a user pressing the given key on this fixture's
. |
JSplitPaneFixture |
releaseKey(int keyCode)
Simulates a user releasing the given key on this fixture's
. |
JSplitPaneFixture |
requireDisabled()
Asserts that this fixture's
is disabled. |
JSplitPaneFixture |
requireEnabled()
Asserts that this fixture's
is enabled. |
JSplitPaneFixture |
requireEnabled(Timeout timeout)
Asserts that this fixture's
is enabled. |
JSplitPaneFixture |
requireFocused()
Asserts that this fixture's
has input focus. |
JSplitPaneFixture |
requireNotVisible()
Asserts that this fixture's
is not visible. |
JSplitPaneFixture |
requireToolTip(Pattern pattern)
Asserts that the toolTip in this fixture's
matches the given regular expression
pattern. |
JSplitPaneFixture |
requireToolTip(String expected)
Asserts that the toolTip in this fixture's
matches the given value. |
JSplitPaneFixture |
requireVisible()
Asserts that this fixture's
is visible. |
JSplitPaneFixture |
rightClick()
Simulates a user right-clicking this fixture's
. |
JPopupMenuFixture |
showPopupMenu()
Shows a pop-up menu using this fixture's
as the invoker of the pop-up menu. |
JPopupMenuFixture |
showPopupMenuAt(Point p)
Shows a pop-up menu at the given point using this fixture's
as the invoker of the
pop-up menu. |
background, component, font, foreground, requireShowing, targetCastedTo, validateNotNullpublic JSplitPaneFixture(Robot robot, JSplitPane target)
JSplitPaneFixture.robot - performs simulation of user events on the given JSplitPane.target - the JSplitPane to be managed by this fixture.NullPointerException - if robot is null.NullPointerException - if target is null.public JSplitPaneFixture(Robot robot, String spinnerName)
JSplitPaneFixture.robot - performs simulation of user events on a JSplitPane.spinnerName - the name of the JSplitPane to find using the given Robot.ComponentLookupException - if a matching JSplitPane could not be found.ComponentLookupException - if more than one matching JSplitPane is found.protected final void driver(JSplitPaneDriver newDriver)
JSplitPaneDriver to be used by this fixture.newDriver - the new JSplitPaneDriver.NullPointerException - if the given driver is null.public JSplitPaneFixture moveDividerTo(int location)
JSplitPane.
Since 1.2, this method respects the minimum and maximum values of the left and right components inside this
fixture's JSplitPane.
location - the location to move the divider to.IllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.public JSplitPaneFixture click()
JSplitPane.click in interface MouseInputSimulationFixtureIllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.public JSplitPaneFixture click(MouseButton button)
JSplitPane.click in interface MouseInputSimulationFixturebutton - the button to click.NullPointerException - if the given MouseButton is null.IllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.public JSplitPaneFixture click(MouseClickInfo mouseClickInfo)
JSplitPane.click in interface MouseInputSimulationFixturemouseClickInfo - specifies the button to click and the times the button should be clicked.NullPointerException - if the given MouseClickInfo is null.IllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.public JSplitPaneFixture doubleClick()
JSplitPane.doubleClick in interface MouseInputSimulationFixtureIllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.public JSplitPaneFixture rightClick()
JSplitPane.rightClick in interface MouseInputSimulationFixtureIllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.public JSplitPaneFixture focus()
JSplitPane.focus in interface FocusableComponentFixtureIllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.public JSplitPaneFixture pressAndReleaseKey(KeyPressInfo keyPressInfo)
JSplitPane.
Modifiers is a mask from the available InputEvent masks.pressAndReleaseKey in interface KeyboardInputSimulationFixturekeyPressInfo - specifies the key and modifiers to press.NullPointerException - if the given KeyPressInfo is null.IllegalArgumentException - if the given code is not a valid key code.IllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.KeyPressInfopublic JSplitPaneFixture pressAndReleaseKeys(int... keyCodes)
JSplitPane. This
method does not affect the current focus.pressAndReleaseKeys in interface KeyboardInputSimulationFixturekeyCodes - one or more codes of the keys to press.NullPointerException - if the given array of codes is null.IllegalArgumentException - if any of the given code is not a valid key code.IllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.KeyEventpublic JSplitPaneFixture pressKey(int keyCode)
JSplitPane.pressKey in interface KeyboardInputSimulationFixturekeyCode - the code of the key to press.IllegalArgumentException - if any of the given code is not a valid key code.IllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.KeyEventpublic JSplitPaneFixture releaseKey(int keyCode)
JSplitPane.releaseKey in interface KeyboardInputSimulationFixturekeyCode - the code of the key to release.IllegalArgumentException - if any of the given code is not a valid key code.IllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.KeyEventpublic JSplitPaneFixture requireFocused()
JSplitPane has input focus.requireFocused in interface FocusableComponentFixtureAssertionError - if this fixture's JSplitPane does not have input focus.public JSplitPaneFixture requireEnabled()
JSplitPane is enabled.requireEnabled in interface StateVerificationFixtureAssertionError - if this fixture's JSplitPane is disabled.public JSplitPaneFixture requireEnabled(Timeout timeout)
JSplitPane is enabled.requireEnabled in interface StateVerificationFixturetimeout - the time this fixture will wait for the component to be enabled.WaitTimedOutError - if this fixture's JSplitPane is never enabled.public JSplitPaneFixture requireDisabled()
JSplitPane is disabled.requireDisabled in interface StateVerificationFixtureAssertionError - if this fixture's JSplitPane is enabled.public JSplitPaneFixture requireVisible()
JSplitPane is visible.requireVisible in interface StateVerificationFixtureAssertionError - if this fixture's JSplitPane is not visible.public JSplitPaneFixture requireNotVisible()
JSplitPane is not visible.requireNotVisible in interface StateVerificationFixtureAssertionError - if this fixture's JSplitPane is visible.public JSplitPaneFixture requireToolTip(String expected)
JSplitPane matches the given value.requireToolTip in interface ToolTipDisplayFixtureexpected - the given value. It can be a regular expression.AssertionError - if the toolTip in this fixture's JSplitPane does not match the given value.public JSplitPaneFixture requireToolTip(Pattern pattern)
JSplitPane matches the given regular expression
pattern.requireToolTip in interface ToolTipDisplayFixturepattern - the regular expression pattern to match.NullPointerException - if the given regular expression pattern is null.AssertionError - if the toolTip in this fixture's JSplitPane does not match the given regular
expression.public Object clientProperty(Object key)
JSplitPane, under the given key.clientProperty in interface ClientPropertyStorageFixturekey - the key to use to retrieve the client property.null if the property was
not found.NullPointerException - if the given key is null.public JPopupMenuFixture showPopupMenu()
JSplitPane as the invoker of the pop-up menu.showPopupMenu in interface JPopupMenuInvokerFixtureIllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.ComponentLookupException - if a pop-up menu cannot be found.public JPopupMenuFixture showPopupMenuAt(Point p)
JSplitPane as the invoker of the
pop-up menu.showPopupMenuAt in interface JPopupMenuInvokerFixturep - the given point where to show the pop-up menu.IllegalStateException - if this fixture's JSplitPane is disabled.IllegalStateException - if this fixture's JSplitPane is not showing on the screen.ComponentLookupException - if a pop-up menu cannot be found.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.