org.test4j.tools.commons
类 MethodFinder

java.lang.Object
  继承者 org.test4j.tools.commons.MethodFinder

public class MethodFinder
extends Object

获得一个类(方法)的测试类(方法)的工具

作者:
darui.wudr

构造方法摘要
MethodFinder()
           
 
方法摘要
static List<String> findTestClaz(Class claz)
          获得claz的所有测试类
static List<String> findTestClaz(String claz)
          获得claz的所有测试类
static List<String> findTestMethod(Class claz, Method method)
          获得method的所有测试方法
static List<String> findTestMethod(Class claz, String methodname)
          获得method的所有测试方法
static List<String> findTestMethod(String classname, String methodname)
          获得method的所有测试方法
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MethodFinder

public MethodFinder()
方法详细信息

findTestClaz

public static List<String> findTestClaz(Class claz)
获得claz的所有测试类

参数:
claz -
返回:

findTestClaz

public static List<String> findTestClaz(String claz)
获得claz的所有测试类

参数:
claz -
返回:

findTestMethod

public static List<String> findTestMethod(Class claz,
                                          Method method)
获得method的所有测试方法

参数:
claz -
method -
返回:

findTestMethod

public static List<String> findTestMethod(Class claz,
                                          String methodname)
获得method的所有测试方法

参数:
claz -
method -
返回:

findTestMethod

public static List<String> findTestMethod(String classname,
                                          String methodname)
获得method的所有测试方法

参数:
claz -
method -
返回:
抛出:
ClassNotFoundException


Copyright © 2013. All rights reserved.