org.jtestcase
Class JTestCaseUtil

java.lang.Object
  extended by org.jtestcase.JTestCaseUtil

public class JTestCaseUtil
extends java.lang.Object

Utility class for JTestCase instances

Author:
Fausto Lelli, Yuqing Wang, Christian Koelle $Id: JTestCaseUtil.java,v 1.4 2005/10/15 12:27:55 faustothegrey Exp $

Constructor Summary
JTestCaseUtil(JTestCase jtestcase)
           
 
Method Summary
 java.util.Vector getNameOfTestCases(JTestCase jtestcase)
          Returns the identifiers of all testcases (in all methods) in this JTestCase instance
 java.util.Vector getNameOfTestCases(java.lang.String methodName)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTestCaseUtil

public JTestCaseUtil(JTestCase jtestcase)
Method Detail

getNameOfTestCases

public java.util.Vector getNameOfTestCases(JTestCase jtestcase)
                                    throws JTestCaseException
Returns the identifiers of all testcases (in all methods) in this JTestCase instance

Returns:
all test case identifiers in a vector
Throws:
JTestCaseException - if an internal error occurs

getNameOfTestCases

public java.util.Vector getNameOfTestCases(java.lang.String methodName)
                                    throws JTestCaseException
Deprecated. 

Get all test cases' name for a given method into Vector. This method requires that for a given method, each test case should be named uniquely.

Parameters:
methodName - - name of tested method. Defined in data file in /tests/class/method@test-case.
Returns:
Vector of names of test cases that are defined for this method in data file in /tests/class/method@test-case.
Throws:
JTestCaseException - if an internal error occurs