|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.handlers.BatchTestHandler
public class BatchTestHandler
The BatchTestHandler allows the grouping of a number of Stored Procedure calls and/or SQL statements and a number of expected results from these. The whole group is executed within a single transactional context, so a failure in one of the SQL statements will roll back the entire test to the point before it was called. Note that all the results need not be specified. The handler will use the result's id attribute to match with the corresponding sql or call element's id attribute to compare the results. Pairs for which the result is not specified will be considered to have passed.
Constructor Summary | |
---|---|
BatchTestHandler()
|
Method Summary | |
---|---|
java.lang.Object |
process(org.jdom.Element elBatchTest)
Collects the stored procedures and SQL statements specified and runs them in a batch, matching with the specified results with the same id attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchTestHandler()
Method Detail |
---|
public final java.lang.Object process(org.jdom.Element elBatchTest) throws java.lang.Exception
process
in interface IHandler
elBatchTest
- the JDOM Element representing the batchtest 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 |