Lines Matching refs:clazz
87 Class<?> clazz = mClassLoader.loadClass(className);
89 addSingleTestMethod(clazz, methodName);
91 Method[] methods = clazz.getMethods();
94 addSingleTestMethod(clazz, method.getName());
108 protected void addSingleTestMethod(Class<?> clazz, String method) {
109 if (!(mFilter.accept(clazz))) {
113 TestCase testCase = (TestCase) clazz.newInstance();
117 mTestCases.add(error(clazz, "InstantiationException: could not instantiate " +
118 "test class. Class: " + clazz.getName()));
120 mTestCases.add(error(clazz, "IllegalAccessException: could not instantiate " +
121 "test class. Class: " + clazz.getName()));
125 private UiAutomatorTestCase error(Class<?> clazz, final String message) {
132 warning.setName(clazz.getName());
150 * @param clazz
153 public boolean accept(Class<?> clazz);