Package org.fest.swing.driver
Class JAppletDriver
java.lang.Object
org.fest.swing.driver.ComponentDriver
org.fest.swing.driver.JAppletDriver
Understands functional testing of
JApplets:
- user input simulation
- state verification
- property value query
org.fest.swing.fixture in your tests.- Since:
- 1.2
-
Field Summary
Fields inherited from class org.fest.swing.driver.ComponentDriver
robot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanprivate static AppletContextappletContext(JApplet applet) appletContextOf(JApplet applet) Returns theof the givenAppletContext.JAppletprivate static URLcodeBaseOf(JApplet applet) Returns the URL of the directory that contains the given.JAppletprivate static URLdocumentBase(JApplet applet) documentBaseOf(JApplet applet) Returns the URL of the document the givenis embedded.JAppletprivate static voidbooleanIndicates whether the givenis active or not.JAppletprivate static StringparameterValue(JApplet applet, String parameterName) Returns the value of the named parameter in the givenin the HTML tag, orJAppletnullif not set.voidRequests the givento be resized.JAppletMethods inherited from class org.fest.swing.driver.ComponentDriver
assertIsEnabledAndShowing, click, click, click, click, click, doubleClick, drag, dragOver, drop, focus, focusAndWaitForFocusGain, invokePopupMenu, invokePopupMenu, moveMouseIgnoringAnyError, moveMouseIgnoringAnyError, performAccessibleActionOf, pressAndReleaseKey, pressAndReleaseKey, pressAndReleaseKeys, pressKey, propertyName, releaseKey, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireSize, requireVisible, rightClick, settings, waitForShowing
-
Constructor Details
-
JAppletDriver
Creates a newJAppletDriver.- Parameters:
robot- the robot to use simulate user input.
-
-
Method Details
-
appletContextOf
Returns theof the givenAppletContext.JApplet- Parameters:
applet- the givenJApplet.- Returns:
- the
AppletContextof the givenJApplet.
-
appletContext
-
resize
Requests the givento be resized.JApplet- Parameters:
applet- the givenJApplet.width- the new width.height- the new height.
-
doResize
-
codeBaseOf
Returns the URL of the directory that contains the given.JApplet- Parameters:
applet- the givenJApplet.- Returns:
- the URL of the directory that contains the given
JApplet.
-
codeBase
-
documentBaseOf
Returns the URL of the document the givenis embedded.JApplet- Parameters:
applet- the givenJApplet.- Returns:
- the URL of the document the given
JAppletis embedded.
-
documentBase
-
parameterValue
Returns the value of the named parameter in the givenin the HTML tag, orJAppletnullif not set.- Parameters:
applet- the givenJApplet.parameterName- a parameter name.- Returns:
- the value of the named parameter in the given {code JApplet} in the HTML tag, or
nullif not set.
-
parameter
-
isActive
Indicates whether the givenis active or not.JApplet- Parameters:
applet- the givenJApplet.- Returns:
trueif the givenJAppletis active;falseotherwise.
-
active
-