Lines Matching full:classname
152 void started(String className);
153 void finished(String className);
154 void performance(String className,
157 void passed(String className);
158 void failed(String className, Throwable execption);
180 private void started(String className) {
184 mListeners.get(i).started(className);
188 private void finished(String className) {
191 mListeners.get(i).finished(className);
195 private void performance(String className,
201 mListeners.get(i).performance(className,
208 public void passed(String className) {
212 mListeners.get(i).passed(className);
216 public void failed(String className, Throwable exception) {
220 mListeners.get(i).failed(className, exception);
270 private void missingTest(String className, Throwable e) {
271 started(className);
272 finished(className);
273 failed(className, e);
280 public void run(String className) {
282 mClassName = className;
283 Class clazz = mContext.getClassLoader().loadClass(className);
296 started(className);
303 runInPerformanceMode(test, className, false, className);
322 finished(className);
324 passed(className);
326 failed(className, e);
355 runInPerformanceMode(test, className, true, test.toString());
376 + " children method: " + className);
379 Log.e("ClassNotFoundException for " + className, e.toString());
380 if (isJunitTest(className)) {
381 runSingleJunitTest(className);
383 missingTest(className, e);
386 System.out.println("InstantiationException for " + className);
387 missingTest(className, e);
389 System.out.println("IllegalAccessException for " + className);
390 missingTest(className, e);
394 public void runInPerformanceMode(Object testCase, String className, boolean junitTest,
402 Class clazz = mContext.getClassLoader().loadClass(className);
482 public void runSingleJunitTest(String className) {
484 int index = className.lastIndexOf('$');
486 String originalClassName = className;
488 className = className.substring(0, index);
492 Class clazz = mContext.getClassLoader().loadClass(className);
511 runInPerformanceMode(test, className, true, test.toString());
548 public static Method getChildrenMethod(Context c, String className) {
550 return getChildrenMethod(c.getClassLoader().loadClass(className));
556 public static String[] getChildren(Context c, String className) {
557 Method m = getChildrenMethod(c, className);
558 String[] testChildren = getTestChildren(c, className);
561 + className);
593 public static String[] getTestChildren(Context c, String className) {
595 Class clazz = c.getClassLoader().loadClass(className);
652 public static boolean isTestSuite(Context c, String className) {
653 boolean childrenMethods = getChildrenMethod(c, className) != null;
656 Class clazz = c.getClassLoader().loadClass(className);
668 public boolean isJunitTest(String className) {
669 int index = className.lastIndexOf('$');
671 className = className.substring(0, index);
674 Class clazz = mContext.getClassLoader().loadClass(className);
686 public static int countTests(Context c, String className) {
688 Class clazz = c.getClassLoader().loadClass(className);
711 * Returns a title to display given the className of a test.
716 public static String getTitle(String className) {
717 int indexDot = className.lastIndexOf('.');
718 int indexDollar = className.lastIndexOf('$');
721 className = className.substring(index + 1);
723 return className;