/** * Start analysis from target class * * @param className */ public static void analyzeClass(String className, List<String> classPath) throws RuntimeException, ClassNotFoundException { initInheritanceTree(classPath); analyze(className, classPath); }
/** * Start analysis from target * * @param target (e.g., directory, or jar file) */ public static Set<String> analyzeTarget(String target, List<String> classPath) throws RuntimeException, ClassNotFoundException { initInheritanceTree(classPath); targetClasses = ResourceList.getInstance(TestGenerationContext.getInstance().getClassLoaderForSUT()).getAllClasses(target, false); for (String className : targetClasses) { Properties.TARGET_CLASS = className; analyze(className, classPath); } return targetClasses; }