@Test public void testAnalyzeClassDependencies(){ String targetClass = "eu.stamp.botsing.Fraction"; String user_dir = System.getProperty("user.dir"); File file = new File(user_dir); String base_dir = Paths.get(file.getParent(), "botsing-examples").toString(); String projectCP = Paths.get(base_dir, "target", "classes").toString(); String[] cps = new String[1]; cps[0] = projectCP; setupProjectClasspath(cps); ClassInstrumentation.instrumentClassByTestExecution(targetClass); SetupUtility.analyzeClassDependencies(targetClass); Assert.assertTrue(TestGenerationContext.getInstance().getClassLoaderForSUT().getLoadedClasses().contains(targetClass)); }
public static void analyzeClassDependencies(String className) { String cp = ClassPathHandler.getInstance().getTargetProjectClasspath(); List<String> cpList = Arrays.asList(cp.split(File.pathSeparator)); Properties.TARGET_CLASS=className; try { LOG.info("Starting the dependency analysis. The number of detected jar files is {}.",cpList.size()); DependencyAnalysis.analyzeClass(className,Arrays.asList(cp.split(File.pathSeparator))); LOG.info("Analysing dependencies done!"); } catch (ClassNotFoundException e) { e.printStackTrace(); } }
SetupUtility { public static void analyzeClassDependencies(String className) { String cp = ClassPathHandler.getInstance().getTargetProjectClasspath(); List<String> cpList = Arrays.asList(cp.split(File.pathSeparator)); Properties.TARGET_CLASS=className; try { LOG.info("Starting the dependency analysis. The number of detected jar files is {}.",cpList.size()); DependencyAnalysis.analyzeClass(className,Arrays.asList(cp.split(File.pathSeparator))); LOG.info("Analysing dependencies done!"); } catch (ClassNotFoundException e) { e.printStackTrace(); } } }
SetupUtility { public static void analyzeClassDependencies(String className) { String cp = ClassPathHandler.getInstance().getTargetProjectClasspath(); List<String> cpList = Arrays.asList(cp.split(File.pathSeparator)); Properties.TARGET_CLASS=className; try { LOG.info("Starting the dependency analysis. The number of detected jar files is {}.",cpList.size()); DependencyAnalysis.analyzeClass(className,Arrays.asList(cp.split(File.pathSeparator))); LOG.info("Analysing dependencies done!"); } catch (ClassNotFoundException e) { e.printStackTrace(); } }  }
SetupUtility { public static void analyzeClassDependencies(String className) { String cp = ClassPathHandler.getInstance().getTargetProjectClasspath(); List<String> cpList = Arrays.asList(cp.split(File.pathSeparator)); Properties.TARGET_CLASS=className; try { LOG.info("Starting the dependency analysis. The number of detected jar files is {}.",cpList.size()); DependencyAnalysis.analyzeClass(className,Arrays.asList(cp.split(File.pathSeparator))); LOG.info("Analysing dependencies done!"); } catch (ClassNotFoundException e) { e.printStackTrace(); } }  static void printHelpMessage(Options options, boolean integration); static CommandLine parseCommands(String[] args, Options options, boolean integration); static void updateEvoSuiteProperties(java.util.Properties properties); static String[] getCompatibleCP(String cp); static void setupProjectClasspath(String[] projectCP); static void configureClassReInitializer(); static void analyzeClassDependencies(String  className); }
SetupUtility { public static void analyzeClassDependencies(String className) { String cp = ClassPathHandler.getInstance().getTargetProjectClasspath(); List<String> cpList = Arrays.asList(cp.split(File.pathSeparator)); Properties.TARGET_CLASS=className; try { LOG.info("Starting the dependency analysis. The number of detected jar files is {}.",cpList.size()); DependencyAnalysis.analyzeClass(className,Arrays.asList(cp.split(File.pathSeparator))); LOG.info("Analysing dependencies done!"); } catch (ClassNotFoundException e) { e.printStackTrace(); } }  static void printHelpMessage(Options options, boolean integration); static CommandLine parseCommands(String[] args, Options options, boolean integration); static void updateEvoSuiteProperties(java.util.Properties properties); static String[] getCompatibleCP(String cp); static void setupProjectClasspath(String[] projectCP); static void configureClassReInitializer(); static void analyzeClassDependencies(String  className);  }