junit.extensions.awt.script
Class Action
java.lang.Object
|
+--junit.extensions.awt.script.Step
|
+--junit.extensions.awt.script.MethodInvocation
|
+--junit.extensions.awt.script.Action
- All Implemented Interfaces:
- Tags, XMLifiable
- public class Action
- extends MethodInvocation
Encapsulate an action.
- actionXXX on ComponentTester
- actionXXX on ComponentTester subclass, requires component attribute
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 |
Constructor Summary |
Action(Resolver resolver,
ComponentFinder finder,
java.util.HashMap attributes)
|
Action(Resolver resolver,
ComponentFinder finder,
java.lang.String description,
java.lang.String methodName,
java.lang.String[] args)
Action for a method in the ComponentTester base class. |
Action(Resolver resolver,
ComponentFinder finder,
java.lang.String description,
java.lang.String methodName,
java.lang.String[] args,
java.lang.Class testedClass)
|
Method Summary |
protected java.lang.String |
getAttributes()
Return custom attributes for an Action. |
protected java.lang.String |
getDefaultDescription()
Return a default description for this action. |
protected java.lang.String |
getUsage()
Return the proper XML usage for this step. |
protected java.lang.String |
getXMLTag()
Return the XML tag for this step. |
protected java.lang.reflect.Method |
resolveMethod()
Resolve the method name into its final form. |
protected ComponentTester |
resolveTester()
Get the component tester appropriate for this step. |
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, 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 |
Action
public Action(Resolver resolver,
ComponentFinder finder,
java.util.HashMap attributes)
throws InvalidScriptException
Action
public Action(Resolver resolver,
ComponentFinder finder,
java.lang.String description,
java.lang.String methodName,
java.lang.String[] args)
- Action for a method in the ComponentTester base class.
Action
public Action(Resolver resolver,
ComponentFinder finder,
java.lang.String description,
java.lang.String methodName,
java.lang.String[] args,
java.lang.Class testedClass)
getXMLTag
protected java.lang.String getXMLTag()
- Return the XML tag for this step.
- Overrides:
getXMLTag
in class Step
getAttributes
protected java.lang.String getAttributes()
- Return custom attributes for an Action.
- Overrides:
getAttributes
in class MethodInvocation
getUsage
protected java.lang.String getUsage()
- Return the proper XML usage for this step.
- Overrides:
getUsage
in class Step
getDefaultDescription
protected java.lang.String getDefaultDescription()
- Return a default description for this action.
- Overrides:
getDefaultDescription
in class Step
resolveTester
protected ComponentTester resolveTester()
- Get the component tester appropriate for this step.
- Overrides:
resolveTester
in class Step
resolveMethod
protected java.lang.reflect.Method resolveMethod()
- Resolve the method name into its final form.
- Overrides:
resolveMethod
in class MethodInvocation