Package org.fest.swing.driver
Class JAppletDriver
java.lang.Object
org.fest.swing.driver.ComponentDriver
org.fest.swing.driver.JAppletDriver
Understands functional testing of
JApplet
s:
- 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 boolean
private static AppletContext
appletContext
(JApplet applet) appletContextOf
(JApplet applet) Returns the
of the givenAppletContext
.JApplet
private static URL
codeBaseOf
(JApplet applet) Returns the URL of the directory that contains the given
.JApplet
private static URL
documentBase
(JApplet applet) documentBaseOf
(JApplet applet) Returns the URL of the document the given
is embedded.JApplet
private static void
boolean
Indicates whether the given
is active or not.JApplet
private static String
parameterValue
(JApplet applet, String parameterName) Returns the value of the named parameter in the given
in the HTML tag, orJApplet
null
if not set.void
Requests the given
to be resized.JApplet
Methods 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 the
of the givenAppletContext
.JApplet
- Parameters:
applet
- the givenJApplet
.- Returns:
- the
AppletContext
of the givenJApplet
.
-
appletContext
-
resize
Requests the given
to 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 given
is embedded.JApplet
- Parameters:
applet
- the givenJApplet
.- Returns:
- the URL of the document the given
JApplet
is embedded.
-
documentBase
-
parameterValue
Returns the value of the named parameter in the given
in the HTML tag, orJApplet
null
if 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
null
if not set.
-
parameter
-
isActive
Indicates whether the given
is active or not.JApplet
- Parameters:
applet
- the givenJApplet
.- Returns:
true
if the givenJApplet
is active;false
otherwise.
-
active
-