Home
last modified time | relevance | path

Searched refs:classObj (Results 1 – 5 of 5) sorted by relevance

/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DHostTest.java348 for (Class<?> classObj : getClasses()) { in countTestCases()
349 if (IRemoteTest.class.isAssignableFrom(classObj) in countTestCases()
350 || Test.class.isAssignableFrom(classObj)) { in countTestCases()
351 TestSuite suite = collectTests(collectClasses(classObj)); in countTestCases()
354 && IRemoteTest.class.isAssignableFrom(classObj) in countTestCases()
355 && !Test.class.isAssignableFrom(classObj)) { in countTestCases()
361 } else if (hasJUnit4Annotation(classObj)) { in countTestCases()
362 Request req = Request.aClass(classObj); in countTestCases()
558 for (Class<?> classObj : getClasses()) { in runTestClasses()
559 if (IRemoteTest.class.isAssignableFrom(classObj)) { in runTestClasses()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DTestFilterHelper.java217 public boolean shouldRun(String packageName, Class<?> classObj, Method method) { in shouldRun() argument
218 String className = classObj.getName(); in shouldRun()
224 if (isExcluded(Arrays.asList(classObj.getAnnotations()))) { in shouldRun()
228 if (isIncluded(Arrays.asList(classObj.getAnnotations())) in shouldRun()
235 || !isIncluded(Arrays.asList(classObj.getAnnotations()))) { in shouldRun()
255 Class<?> classObj = null; in shouldRun() local
264 classObj = cl.loadClass(desc.getClassName()); in shouldRun()
267 String.format("Could not load Test class %s", classObj), e); in shouldRun()
271 if (isExcluded(Arrays.asList(classObj.getAnnotations()))) { in shouldRun()
274 String packageName = classObj.getPackage().getName(); in shouldRun()
DTestLoader.java109 private boolean hasJUnit4Annotation(Class<?> classObj) { in hasJUnit4Annotation() argument
110 if (classObj.isAnnotationPresent(SuiteClasses.class)) { in hasJUnit4Annotation()
113 for (Method m : classObj.getMethods()) { in hasJUnit4Annotation()
/tools/tradefederation/core/lite/com/android/tradefed/lite/
DHostUtils.java213 public static boolean hasJUnitAnnotation(Class<?> classObj) { in hasJUnitAnnotation() argument
214 if (classObj.isAnnotationPresent(org.junit.runner.RunWith.class) in hasJUnitAnnotation()
216 classObj.getAnnotation(org.junit.runner.RunWith.class).value())) { in hasJUnitAnnotation()
218 } else if (!classObj.isAnnotationPresent(org.junit.runner.RunWith.class)) { in hasJUnitAnnotation()
219 if (classObj.isAnnotationPresent(SuiteClasses.class)) { in hasJUnitAnnotation()
222 for (Method m : classObj.getMethods()) { in hasJUnitAnnotation()
227 if (TestCase.class.isAssignableFrom(classObj)) { in hasJUnitAnnotation()
228 return Arrays.asList(classObj.getDeclaredMethods()) in hasJUnitAnnotation()
/tools/tradefederation/core/isolation/com/android/tradefed/isolation/
DIsolationFilter.java125 Class<?> classObj = null; in getPackageName() local
127 classObj = Class.forName(desc.getClassName()); in getPackageName()
130 String.format("Could not load Test class %s", classObj), e); in getPackageName()
132 return classObj.getPackage().getName(); in getPackageName()