junit.extensions.awt.script
Class Launch
java.lang.Object
|
+--junit.extensions.awt.script.Step
|
+--junit.extensions.awt.script.MethodInvocation
|
+--junit.extensions.awt.script.Launch
- All Implemented Interfaces:
- Tags, XMLifiable
- public class Launch
- extends MethodInvocation
Provides scripted static method invocation.
<launch class="package.class" method="methodName" args="...">
The args attribute is a comma-separated list of arguments to pass to the
class method, and may use square brackets to denote an array,
e.g. "[one,two,three]" will be interpreted as an array length 3
of String.
Fields inherited from interface junit.extensions.awt.script.Tags |
TAG_ACTION, TAG_ARGS, TAG_ASSERT, TAG_AWTTESTSCRIPT, TAG_CLASS, TAG_COMPONENT, TAG_COUNT, TAG_DESC, TAG_EVENT, TAG_FILENAME, TAG_ID, TAG_INVERT, TAG_INVOKER, TAG_KEYCHAR, TAG_KEYCODE, TAG_KIND, TAG_LAUNCH, TAG_METHOD, TAG_MODIFIERS, TAG_NAME, TAG_PARENT, TAG_POLL_INTERVAL, TAG_SCRIPT, TAG_SEQUENCE, TAG_STOP_ON_ERROR, TAG_STOP_ON_FAILURE, TAG_TAG, TAG_TERMINATE, TAG_THREADED, TAG_TIMEOUT, TAG_TITLE, TAG_TRIGGER, TAG_TYPE, TAG_VALUE, TAG_WAIT, TAG_WINDOW, TAG_X, TAG_Y |
Method Summary |
protected java.lang.String |
getAttributes()
Attributes to save in script. |
protected java.lang.String |
getDefaultDescription()
Return a reasonable default description for this script step. |
protected boolean |
getThreadedDefault()
|
protected java.lang.String |
getUsage()
Provide a usage String for this step. |
protected java.lang.String |
getXMLTag()
Define the XML tag to use for this script step. |
protected java.lang.reflect.Method |
resolveMethod()
The implementation of this method should invoke the defined
resolveMethod with the appropriate arguments. |
Methods inherited from class junit.extensions.awt.script.Step |
addStepListener, clearFailures, createAttributeMap, createStep, createStep, fireStepEnd, fireStepError, fireStepEvent, fireStepEvent, fireStepEvent, fireStepFailure, fireStepProgress, fireStepStart, getContents, getDescription, getError, getFailure, getFinder, getResolver, getStopOnError, getStopOnFailure, getTester, parseAttributes, removeStepListener, resolve, resolveTester, run, setDescription, setError, setFailure, setStopOnError, setStopOnFailure, simpleClassName, toString, toXML, usage, usage |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Launch
public Launch(Resolver resolver,
ComponentFinder finder,
java.util.HashMap attributes)
throws InvalidScriptException
Launch
public Launch(Resolver resolver,
ComponentFinder finder,
java.lang.String description,
java.lang.String className,
java.lang.String methodName,
java.lang.String[] args)
resolveMethod
protected java.lang.reflect.Method resolveMethod()
- Description copied from class:
MethodInvocation
- The implementation of this method should invoke the defined
resolveMethod with the appropriate arguments.
- Overrides:
resolveMethod
in class MethodInvocation
getThreadedDefault
protected boolean getThreadedDefault()
- Overrides:
getThreadedDefault
in class MethodInvocation
getAttributes
protected java.lang.String getAttributes()
- Description copied from class:
MethodInvocation
- Attributes to save in script. FIXME use a hash table
- Overrides:
getAttributes
in class MethodInvocation
getDefaultDescription
protected java.lang.String getDefaultDescription()
- Description copied from class:
Step
- Return a reasonable default description for this script step.
This value is used in the absence of an explicit description.
- Overrides:
getDefaultDescription
in class Step
getUsage
protected java.lang.String getUsage()
- Description copied from class:
Step
- Provide a usage String for this step.
- Overrides:
getUsage
in class Step
getXMLTag
protected java.lang.String getXMLTag()
- Description copied from class:
Step
- Define the XML tag to use for this script step.
- Overrides:
getXMLTag
in class Step