|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sqlunit.handlers.TestHandler
public class TestHandler
The TestHandler class is responsible for executing a single test specified by the contents of the test tag in the input XML file. A test consists of either a single sql or a call tag followed by a result tag. Thus a test will involve first running the sql or stored procedure and comparing the results with the supplied result. The test will also have to replace any variables specified in the result element with the corresponding value from the symbol table.
Constructor Summary | |
---|---|
TestHandler()
|
Method Summary | |
---|---|
java.lang.Object |
process(org.jdom.Element elTest)
Calls either the SqlHandler or CallHandler and compares the result returned with the supplied result in the result tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestHandler()
Method Detail |
---|
public final java.lang.Object process(org.jdom.Element elTest) throws java.lang.Exception
process
in interface IHandler
elTest
- the JDOM Element representing the test tag.
java.lang.Exception
- if there was a problem running the process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |