Home | History | Annotate | Download | only in test

Lines Matching full:clazz

283             Class clazz = mContext.getClassLoader().loadClass(className);
284 Method method = getChildrenMethod(clazz);
288 } else if (mRunnableClass.isAssignableFrom(clazz)) {
289 Runnable test = (Runnable) clazz.newInstance();
328 } else if (mJUnitClass.isAssignableFrom(clazz)) {
332 Method[] methods = getAllTestMethods(clazz);
334 junit.framework.TestCase test = (junit.framework.TestCase) clazz.newInstance();
402 Class clazz = mContext.getClassLoader().loadClass(className);
403 Object perftest = clazz.newInstance();
492 Class clazz = mContext.getClassLoader().loadClass(className);
493 if (mJUnitClass.isAssignableFrom(clazz)) {
494 clazz.newInstance();
539 public static Method getChildrenMethod(Class clazz) {
541 return clazz.getMethod("children", (Class[]) null);
595 Class clazz = c.getClassLoader().loadClass(className);
597 if (mJUnitClass.isAssignableFrom(clazz)) {
598 return getTestChildren(clazz);
606 public static String[] getTestChildren(Class clazz) {
607 Method[] methods = getAllTestMethods(clazz);
612 onScreenTestNames[index] = clazz.getName() + "$" + m.getName();
618 public static Method[] getAllTestMethods(Class clazz) {
619 Method[] allMethods = clazz.getDeclaredMethods();
645 public static int countJunitTests(Class clazz) {
646 Method[] allTestMethods = getAllTestMethods(clazz);
656 Class clazz = c.getClassLoader().loadClass(className);
657 if (mJUnitClass.isAssignableFrom(clazz)) {
658 int numTests = countJunitTests(clazz);
674 Class clazz = mContext.getClassLoader().loadClass(className);
675 if (mJUnitClass.isAssignableFrom(clazz)) {
688 Class clazz = c.getClassLoader().loadClass(className);
689 Method method = getChildrenMethod(clazz);
698 } else if (mRunnableClass.isAssignableFrom(clazz)) {
700 } else if (mJUnitClass.isAssignableFrom(clazz)) {
701 return countJunitTests(clazz);