Home | History | Annotate | Download | only in test

Lines Matching defs:method

26 import java.lang.reflect.Method;
95 * Implemented method of the interface TestListener which will listen for the
105 * Implemented method of the interface TestListener which will listen for the
118 * Implemented method of the interface TestListener which will listen for an
284 Method method = getChildrenMethod(clazz);
285 if (method != null) {
286 String[] children = getChildren(method);
332 Method[] methods = getAllTestMethods(clazz);
333 for (Method m : methods) {
376 + " children method: " + className);
539 public static Method getChildrenMethod(Class clazz) {
548 public static Method getChildrenMethod(Context c, String className) {
557 Method m = getChildrenMethod(c, className);
560 throw new RuntimeException("couldn't get children method for "
581 public static String[] getChildren(Method m) {
584 throw new RuntimeException("children method is not static");
607 Method[] methods = getAllTestMethods(clazz);
611 for (Method m : methods) {
618 public static Method[] getAllTestMethods(Class clazz) {
619 Method[] allMethods = clazz.getDeclaredMethods();
621 for (Method m : allMethods) {
628 Method[] testMethods = new Method[numOfMethods];
629 for (Method m : allMethods) {
639 private static boolean isTestMethod(Method m) {
646 Method[] allTestMethods = getAllTestMethods(clazz);
689 Method method = getChildrenMethod(clazz);
690 if (method != null) {
692 String[] children = getChildren(method);