junit.extensions.awt.script
Class SendEvent
java.lang.Object
|
+--junit.extensions.awt.script.Step
|
+--junit.extensions.awt.script.SendEvent
- All Implemented Interfaces:
- Tags, XMLifiable
- public class SendEvent
- extends Step
Script step to send an AWT event to a component.
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 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 ComponentTester |
resolveTester()
Override this to provide a more specific tester. |
protected void |
runStep()
Send our event to the component's event queue. |
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 |
SendEvent
public SendEvent(Resolver resolver,
ComponentFinder finder,
java.util.HashMap attributes)
throws InvalidScriptException
SendEvent
public SendEvent(Resolver resolver,
ComponentFinder finder,
java.lang.String desc,
java.awt.AWTEvent event)
- Create one based on the given event.
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
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
getUsage
protected java.lang.String getUsage()
- Description copied from class:
Step
- Provide a usage String for this step.
- Overrides:
getUsage
in class Step
getAttributes
protected java.lang.String getAttributes()
- Description copied from class:
Step
- Attributes to save in script. FIXME use a hash table?
- Overrides:
getAttributes
in class Step
resolveTester
protected ComponentTester resolveTester()
- Description copied from class:
Step
- Override this to provide a more specific tester.
- Overrides:
resolveTester
in class Step
runStep
protected void runStep()
throws java.lang.Throwable
- Send our event to the component's event queue.
- Overrides:
runStep
in class Step