|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.extensions.xml.elements.AbstractTagHandler
junit.extensions.xml.elements.AssertTextFieldContainsTagHandler
Provide a mechanism for validating the contents of a text field.
id - the text field to validate [required] value - the expected value in the text field [required] useRE - allow the value to contain a regular expression [optional] default - is false exact string match needed If set to true partial strings will work.
Field Summary |
Fields inherited from class junit.extensions.xml.elements.AbstractTagHandler |
|
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 |
Constructor Summary | |
AssertTextFieldContainsTagHandler(org.w3c.dom.Element element,
IXMLTestCase testcase)
Constructor. |
Method Summary | |
void |
processElement()
Handle the XML processing of the tag 'assertTextFieldContains'. |
void |
validateElement()
Make sure the appropriate tag and attributes are used. |
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 |
public AssertTextFieldContainsTagHandler(org.w3c.dom.Element element, IXMLTestCase testcase)
element
- Element to be processed by this tag handler.testcase
- containing test case.Method Detail |
public void processElement() throws XMLException
processElement
in class AbstractTagHandler
XMLException
- is thrown if the element cannot be understood.public void validateElement() throws XMLException
validateElement
in class AbstractTagHandler
XMLException
- may be thrown.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |