@Test public void testPrintHelpMessage(){ String[] args = new String[1]; args[0]="-project_cp"; Options options = new Options(); options.addOption(Option.builder("project_cp") .hasArg() .desc("classpath of the project under test and all its dependencies") .build()); CommandLine commandLine = SetupUtility.parseCommands(new String[0], options,false); Assert.assertEquals(0,commandLine.getArgs().length); commandLine = SetupUtility.parseCommands(args, options,false); Assert.assertEquals(null, commandLine); commandLine = SetupUtility.parseCommands(args, options,true); Assert.assertEquals(null, commandLine); }
public static void printHelpMessage(Options options, boolean integration) { HelpFormatter formatter = new HelpFormatter(); if (integration){ formatter.printHelp("java -jar cling.jar -target_classes class1;class2 -project_cp dep1.jar;dep2.jar )", options); return; } formatter.printHelp("java -jar botsing.jar -crash_log stacktrace.log -target_frame 2 -project_cp dep1.jar;dep2.jar )", options); }
SetupUtility { public static void printHelpMessage(Options options, boolean integration) { HelpFormatter formatter = new HelpFormatter(); if (integration){ formatter.printHelp("java -jar cling.jar -target_classes class1;class2 -project_cp dep1.jar;dep2.jar )", options); return; } formatter.printHelp("java -jar botsing.jar -crash_log stacktrace.log -target_frame 2 -project_cp dep1.jar;dep2.jar )", options); } }
SetupUtility { public static void printHelpMessage(Options options, boolean integration) { HelpFormatter formatter = new HelpFormatter(); if (integration){ formatter.printHelp("java -jar cling.jar -target_classes class1;class2 -project_cp dep1.jar;dep2.jar )", options); return; } formatter.printHelp("java -jar botsing.jar -crash_log stacktrace.log -target_frame 2 -project_cp dep1.jar;dep2.jar )", options); }  }
SetupUtility { public static void printHelpMessage(Options options, boolean integration) { HelpFormatter formatter = new HelpFormatter(); if (integration){ formatter.printHelp("java -jar cling.jar -target_classes class1;class2 -project_cp dep1.jar;dep2.jar )", options); return; } formatter.printHelp("java -jar botsing.jar -crash_log stacktrace.log -target_frame 2 -project_cp dep1.jar;dep2.jar )", options); }  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 printHelpMessage(Options options, boolean integration) { HelpFormatter formatter = new HelpFormatter(); if (integration){ formatter.printHelp("java -jar cling.jar -target_classes class1;class2 -project_cp dep1.jar;dep2.jar )", options); return; } formatter.printHelp("java -jar botsing.jar -crash_log stacktrace.log -target_frame 2 -project_cp dep1.jar;dep2.jar )", options); }  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);  }