|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtestcase.core.digester.JTestCaseDigester
public class JTestCaseDigester
Helper for handling the JTestCaseWizard XML. Reads data from the JTestCaseWizard XML into internal data structures.
| Constructor Summary | |
|---|---|
JTestCaseDigester(java.lang.String fileName,
JTestCase jtestcase)
Standard constructor. |
|
| Method Summary | |
|---|---|
java.util.List |
getAssertGroupInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
Returns a list of assert group instances for a given method name and test case. |
java.util.List |
getAssertParamGroupInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
Returns a list of assert group instances for a given method name and test case. |
java.util.List |
getAssertsInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
Returns a list of all assert instances for the given method and test case |
java.util.List |
getAssertsParamInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
Returns a list of all assertparam instances for the given method and test case |
org.jdom.Document |
getDocument(java.lang.String fileName)
|
java.util.List |
getParamGroupInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
Returns a list of param group instances for a given method name and test case. |
java.util.List |
getParamsInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
Returns a list of all param instances for the given method and test case |
java.util.List |
getTestCaseControlParamGroups()
Returns all control paramgroup . |
java.util.List |
getTestCaseControlParams()
Returns all control params . |
java.util.List |
getTestCaseGlobalParamGroups(java.lang.String className)
Returns all global paramgroup's for given class. |
java.util.List |
getTestCaseGlobalParams(java.lang.String className)
Returns all global params for given class. |
java.util.Vector |
getTestCases(java.lang.String className,
JTestCase jtestcase)
Returns all test cases in one XML file. |
java.util.Vector |
getTestCasesPerMethod(java.lang.String methodName)
Returns all test cases for one method element from the XML. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JTestCaseDigester(java.lang.String fileName,
JTestCase jtestcase)
throws java.io.FileNotFoundException,
XQueryException
fileName - name of the JTestCaseWizard XML file
XQueryException
java.io.FileNotFoundException| Method Detail |
|---|
public java.util.Vector getTestCasesPerMethod(java.lang.String methodName)
throws DigesterException
className - the name of the class elementmethodName - the name of the method element the test cases haven to be read
DigesterException - in case of parsing errors
public java.util.Vector getTestCases(java.lang.String className,
JTestCase jtestcase)
throws DigesterException
className - the name of the class element
DigesterException - in case of parsing errors
public java.util.List getAssertsInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
throws DigesterException
className - the name of the class elementmethodName - name of the method elementtestCase - name of the test case
DigesterException - in case of arsing errors
public java.util.List getAssertsParamInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
throws DigesterException
className - the name of the class elementmethodName - name of the method elementtestCase - name of the test case
DigesterException - in case of arsing errors
public java.util.List getAssertGroupInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
throws DigesterException,
java.io.FileNotFoundException
className - the name of the class elementmethodName - a method nametestCase - a test case
DigesterException - in case of any errors
java.io.FileNotFoundException
public java.util.List getAssertParamGroupInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
throws DigesterException,
java.io.FileNotFoundException
className - the name of the class elementmethodName - a method nametestCase - a test case
DigesterException - in case of any errors
java.io.FileNotFoundException
public java.util.List getParamsInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
throws DigesterException
className - the name of the class elementmethodName - name of the method elementtestCase - name of the test case
DigesterException - in case of parsing errors
public java.util.List getParamGroupInstances(java.lang.String className,
java.lang.String methodName,
java.lang.String testCase)
throws DigesterException,
java.io.FileNotFoundException
className - the name of the class elementmethodName - a method nametestCase - a test case
DigesterException - in case of any errors
java.io.FileNotFoundException
public java.util.List getTestCaseControlParams()
throws DigesterException
DigesterException - in case of parsing errors
public java.util.List getTestCaseControlParamGroups()
throws DigesterException,
java.io.FileNotFoundException
DigesterException - in case of parsing errors
java.io.FileNotFoundException
public java.util.List getTestCaseGlobalParams(java.lang.String className)
throws DigesterException,
java.io.FileNotFoundException
className - the name of the enclosing tag class
DigesterException - in case of parsing errors
java.io.FileNotFoundException
public java.util.List getTestCaseGlobalParamGroups(java.lang.String className)
throws DigesterException,
java.io.FileNotFoundException
className - the name of the enclosing tag class
DigesterException - in case of parsing errors
java.io.FileNotFoundException
public org.jdom.Document getDocument(java.lang.String fileName)
throws java.io.FileNotFoundException,
XQueryException
java.io.FileNotFoundException
XQueryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||