protected boolean isTestClass(String classFileName) { try { if (classFileName.endsWith(".class")) { Class testClass= classFromFile(classFileName); return (testClass != null) && isTestClass(testClass); } } catch (ClassNotFoundException expected) { } catch (NoClassDefFoundError notFatal) { } return false; }
boolean isTestClass(Class testClass) { if (hasSuiteMethod(testClass)) return true; if (Test.class.isAssignableFrom(testClass) && Modifier.isPublic(testClass.getModifiers()) && hasPublicConstructor(testClass)) return true; return false; }
Class classFromFile(String classFileName) throws ClassNotFoundException { String className= classNameFromFile(classFileName); if (!fLoader.isExcluded(className)) return fLoader.loadClass(className, false); return null; }
Class classFromFile(String classFileName) throws ClassNotFoundException { String className= classNameFromFile(classFileName); if (!fLoader.isExcluded(className)) return fLoader.loadClass(className, false); return null; }
protected boolean isTestClass(String classFileName) { try { if (classFileName.endsWith(".class")) { Class testClass= classFromFile(classFileName); return (testClass != null) && isTestClass(testClass); } } catch (ClassNotFoundException expected) { } catch (NoClassDefFoundError notFatal) { } return false; }
boolean isTestClass(Class testClass) { if (hasSuiteMethod(testClass)) return true; if (Test.class.isAssignableFrom(testClass) && Modifier.isPublic(testClass.getModifiers()) && hasPublicConstructor(testClass)) return true; return false; }
Class classFromFile(String classFileName) throws ClassNotFoundException { String className= classNameFromFile(classFileName); if (!fLoader.isExcluded(className)) return fLoader.loadClass(className, false); return null; }
protected boolean isTestClass(String classFileName) { try { if (classFileName.endsWith(".class")) { Class testClass= classFromFile(classFileName); return (testClass != null) && isTestClass(testClass); } } catch (ClassNotFoundException expected) { } catch (NoClassDefFoundError notFatal) { } return false; }
boolean isTestClass(Class testClass) { if (hasSuiteMethod(testClass)) return true; if (Test.class.isAssignableFrom(testClass) && Modifier.isPublic(testClass.getModifiers()) && hasPublicConstructor(testClass)) return true; return false; }