junit.extensions.jfcunit.xml
Class TestTagHandler

java.lang.Object
  extended byjunit.extensions.xml.elements.AbstractTagHandler
      extended byjunit.extensions.xml.elements.TestTagHandler
          extended byjunit.extensions.jfcunit.xml.TestTagHandler
All Implemented Interfaces:
EventDataConstants, JFCXMLConstants, XMLConstants

public class TestTagHandler
extends TestTagHandler
implements JFCXMLConstants

This class will handle the processing of <test> nodes.

Description

This tag handler invokes the test case given.

Attributes

Attribute Description Required Default Values
name name of the test case Yes N/A Alpha Numeric Name
robot Use a robot or send events directly to AWT Event queue. No false true if events are to be sent via the Robot
assertexit Assert the System.exit() command, ExitException will be thrown by the security manager and the application will not exit. No false true if the system exist should be asserted.

Example

 <test name="Login">
 ...
 </test>
 <test name="Logout" assertexit="true">
 ...
 </test>
 

The above runs the defined testcase.

Author:
Kevin Wilson

Field Summary
 
Fields inherited from class junit.extensions.xml.elements.TestTagHandler
m_testCase
 
Fields inherited from class junit.extensions.xml.elements.AbstractTagHandler
 
Fields inherited from interface junit.extensions.jfcunit.xml.JFCXMLConstants
ALT, ALTGR, AMOUNT, ASSERTEXIT, AWTTHREAD, BUTTON1, BUTTON2, BUTTON3, CASEINDEPENDENT, CLASS, CLICK, CLICKS, CODE, CONTAINER, CONTAINS, CTRL, DESTINATION, DOWN, DRAG, DURATION, EDITOR, ENDSWITH, EQUALS, FIND, FINDER, FLUSH, ICONDESCRIPTION, ICONFILE, INDEXDELIMITER, INDEXES, KEY, LABEL, MATCH, META, MODIFIERS, NODEVALUE, OPERATION, PATH, PATHDELIMITER, PAUSE, POINT, POPUPTRIGGER, POSITION, RECORDING, REFERENCE, RESUME, ROBOT, ROTATION, SHIFT, SHOW, SLEEP, SLEEPTIME, SOURCE, STARTSWITH, STRING, SUBCOMPONENT, TERMINATOR, TITLE, UP, WAIT
 
Fields inherited from interface junit.extensions.xml.XMLConstants
ACTION, ACTUALOBJ, ACTUALREFID, ADD, ASSERTENABLED, ASSERTEQUALS, ASSERTNOTEQUALS, ASSERTNOTNULL, ASSERTNOTSAME, ASSERTNULL, ASSERTSAME, CALL, CASE, CHOOSE, CLASSNAME, COLUMN, CONFIRM, DEBUG, DEFAULT, DELIMITER, DIALOG, DUMP, ECHO, ENABLED, ENCODING, EVALUATE, EXPECTEDOBJ, EXPECTEDREFID, FAIL, FILE, FOCUS, FOREACH, ID, INDEX, JFCFILELOC, LESSTHAN, LISTITEM, LOG, MARK, MESSAGE, METHOD, MODE, NAME, OTHERWISE, PATHREFID, PROCEDURE, PROPERTY, RECURSIVE, REFID, RELATIVE, REMOVE, ROW, SAVE, STDERR, STDOUT, STOPWATCH, SUITE, SWITCH, TABLECELL, TAGHANDLERS, TAGNAME, TEST, TYPE, USERE, VALUE, WHEN, WHILE
 
Fields inherited from interface junit.extensions.jfcunit.eventdata.EventDataConstants
CENTER, CUSTOM, DEFAULT_HOLDTIME, DEFAULT_ISPOPUPTRIGGER, DEFAULT_KEY_MODIFIERS, DEFAULT_MOUSE_MODIFIERS, DEFAULT_NUMBEROFCLICKS, DEFAULT_POPUP_MODIFIERS, DEFAULT_POSITION, DEFAULT_SCROLL_AMOUNT, DEFAULT_SLEEPTIME, DEFAULT_WHEEL_ROTATION, DOWN_ARROW_SUBCOMPONENT, EAST, EDITOR_SUBCOMPONENT, INVALID_SUBCOMPONENT, INVALID_TEXT_OFFSET, NORTH, NORTH_EAST, NORTH_WEST, OFFSET, PERCENT, POSITIONSTRINGS, SOUTH, SOUTH_EAST, SOUTH_WEST, UP_ARROW_SUBCOMPONENT, WEST
 
Constructor Summary
TestTagHandler(org.w3c.dom.Element element, IXMLTestSuite testSuite)
          Constructor for TestTagHandler.
 
Method Summary
protected  junit.framework.Test createTest()
          Create a JFCXmlTestCase.
 JFCXMLTestCase getJFCTest()
          Get the current test as a JFCXMLTestCase.
 void processElement()
          Process the children of the test case.
 
Methods inherited from class junit.extensions.xml.elements.TestTagHandler
getName, validateElement
 
Methods inherited from class junit.extensions.xml.elements.AbstractTagHandler
checkAtLeastOneRequiredAttribute, checkAtLeastOneRequiredAttribute, checkElementTagName, checkOneRequiredAttribute, checkOneRequiredAttribute, checkRequiredAttribute, checkRequiredAttribute, getBoolean, getBoolean, getBoolean, getBoolean, getElement, getInt, getInt, getLong, getLong, getPoint, getPoint, getString, getString, getString, getString, getTagName, getTest, getTestCase, getXMLTestCase, getXMLTestSuite, resolveVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestTagHandler

public TestTagHandler(org.w3c.dom.Element element,
                      IXMLTestSuite testSuite)
Constructor for TestTagHandler.

Parameters:
element - The element to be processed
testSuite - The IXMLTestCase that uses this element
Method Detail

getJFCTest

public final JFCXMLTestCase getJFCTest()
Get the current test as a JFCXMLTestCase.

Returns:
JFCXMLTestCase Test Case.

processElement

public void processElement()
                    throws XMLException
Description copied from class: TestTagHandler
Process the children of the test case.

Overrides:
processElement in class TestTagHandler
Throws:
XMLException - upon validation error.
See Also:
AbstractTagHandler.processElement()

createTest

protected junit.framework.Test createTest()
Create a JFCXmlTestCase.

Overrides:
createTest in class TestTagHandler
Returns:
Test new instance.


Licensed under: GNU Lesser General Public License, Ver 2.1, February 1999