public class Tester
extends java.lang.Object
| Constructor and Description |
|---|
Tester(java.lang.String[] projectPaths,
java.lang.String[] testCasesPaths)
Creates the tester that tests the classes of the project with the specified test cases.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
executeTestCase(java.lang.reflect.Method method,
java.lang.Object... args)
Executes the test case.
|
java.lang.Object |
executeTestCase(java.lang.String className,
java.lang.String methodName)
Executes the test case inside the class.
|
java.lang.Object |
executeTestCase(java.lang.String className,
java.lang.String methodName,
java.lang.Object... args)
Executes the test case inside the specified class.
|
double |
executeTestCases(java.lang.String className)
Executes the test cases inside the class.
|
java.lang.reflect.Method |
getTestCase(java.lang.String className,
java.lang.String methodName,
java.lang.Class<?>... paramClasses)
Obtains a test case method implemented in the class
|
java.lang.reflect.Method[] |
getTestCases(java.lang.String className)
Obtains all test case methods implemented in the class
|
void |
refresh()
Refresh the tester in order to access the current classes of the project
|
public Tester(java.lang.String[] projectPaths,
java.lang.String[] testCasesPaths)
projectPaths - the paths in which the classes are foundtestCasesPaths - the paths in which the test cases are foundpublic void refresh()
public java.lang.reflect.Method[] getTestCases(java.lang.String className)
className - the name of the class where the test cases are obtained frompublic java.lang.reflect.Method getTestCase(java.lang.String className,
java.lang.String methodName,
java.lang.Class<?>... paramClasses)
className - the name of the class where the test case is obtained frommethodName - the name of the method to be obtainedparamClasses - the classes of the parameters of the methodpublic double executeTestCases(java.lang.String className)
className - the name of the class where the test cases are executed frompublic java.lang.Object executeTestCase(java.lang.String className,
java.lang.String methodName)
className - the name of the class where the test case is executed frommethodName - the name of the method inside the classpublic java.lang.Object executeTestCase(java.lang.String className,
java.lang.String methodName,
java.lang.Object... args)
className - the name of the class where the test case is executed frommethodName - the name of the method inside the classargs - the arguments of the methodpublic java.lang.Object executeTestCase(java.lang.reflect.Method method,
java.lang.Object... args)
method - the method to be executedargs - the arguments of the method