@Test public void testGetCommandLineOptions() { Options opt = CommandLineParameters.getCommandLineOptions(); assertTrue(opt.hasOption(D_OPT)); assertTrue(opt.hasOption(PROJECT_CP_OPT)); assertTrue(opt.hasOption(TARGET_FRAME_OPT)); assertTrue(opt.hasOption(CRASH_LOG_OPT)); assertTrue(opt.hasOption(HELP_OPT)); }
public static Options getCommandLineOptions() { Options options = new Options(); options.addOption(Option.builder(D_OPT) .numberOfArgs(2) .argName("property=value") .valueSeparator() .desc("use value for given property") .build()); options.addOption(Option.builder(PROJECT_CP_OPT) .hasArg() .desc("classpath of the project under test and all its dependencies") .build()); options.addOption(Option.builder(TARGET_FRAME_OPT) .hasArg() .desc("Level of the target frame") .build()); options.addOption(Option.builder(CRASH_LOG_OPT) .hasArg() .desc("File with the stack trace") .build()); options.addOption(Option.builder(MODEL_PATH_OPT) .hasArg() .desc("Directory of models generated by Botsing model generator") .build()); options.addOption(Option.builder(SEARCH_ALGORITHM) .hasArg() .desc("Select the search algorithm.") .build()); options.addOption(Option.builder(FITNESS_FUNCTION) .hasArg() .desc("Fitness function for guidance of the search algorithm") .build()); options.addOption(Option.builder(INTEGRATION_TESTING) .desc("Use integration testing for crash reproduction") .build()); options.addOption(Option.builder(HELP_OPT) .desc("Prints this help message.") .build()); options.addOption(Option.builder(IO_DIVERSITY) .desc("Enables I/O diversity") .build()); return options; }
CommandLineParameters { public static Options getCommandLineOptions() { Options options = new Options(); options.addOption(Option.builder(D_OPT) .numberOfArgs(2) .argName("property=value") .valueSeparator() .desc("use value for given property") .build()); options.addOption(Option.builder(PROJECT_CP_OPT) .hasArg() .desc("classpath of the project under test and all its dependencies") .build()); options.addOption(Option.builder(TARGET_FRAME_OPT) .hasArg() .desc("Level of the target frame") .build()); options.addOption(Option.builder(CRASH_LOG_OPT) .hasArg() .desc("File with the stack trace") .build()); options.addOption(Option.builder(MODEL_PATH_OPT) .hasArg() .desc("Directory of models generated by Botsing model generator") .build()); options.addOption(Option.builder(SEARCH_ALGORITHM) .hasArg() .desc("Select the search algorithm.") .build()); options.addOption(Option.builder(FITNESS_FUNCTION) .hasArg() .desc("Fitness function for guidance of the search algorithm") .build()); options.addOption(Option.builder(INTEGRATION_TESTING) .desc("Use integration testing for crash reproduction") .build()); options.addOption(Option.builder(HELP_OPT) .desc("Prints this help message.") .build()); options.addOption(Option.builder(IO_DIVERSITY) .desc("Enables I/O diversity") .build()); return options; } }
CommandLineParameters { public static Options getCommandLineOptions() { Options options = new Options(); options.addOption(Option.builder(D_OPT) .numberOfArgs(2) .argName("property=value") .valueSeparator() .desc("use value for given property") .build()); options.addOption(Option.builder(PROJECT_CP_OPT) .hasArg() .desc("classpath of the project under test and all its dependencies") .build()); options.addOption(Option.builder(TARGET_FRAME_OPT) .hasArg() .desc("Level of the target frame") .build()); options.addOption(Option.builder(CRASH_LOG_OPT) .hasArg() .desc("File with the stack trace") .build()); options.addOption(Option.builder(MODEL_PATH_OPT) .hasArg() .desc("Directory of models generated by Botsing model generator") .build()); options.addOption(Option.builder(SEARCH_ALGORITHM) .hasArg() .desc("Select the search algorithm.") .build()); options.addOption(Option.builder(FITNESS_FUNCTION) .hasArg() .desc("Fitness function for guidance of the search algorithm") .build()); options.addOption(Option.builder(INTEGRATION_TESTING) .desc("Use integration testing for crash reproduction") .build()); options.addOption(Option.builder(HELP_OPT) .desc("Prints this help message.") .build()); options.addOption(Option.builder(IO_DIVERSITY) .desc("Enables I/O diversity") .build()); return options; }  }
CommandLineParameters { public static Options getCommandLineOptions() { Options options = new Options(); options.addOption(Option.builder(D_OPT) .numberOfArgs(2) .argName("property=value") .valueSeparator() .desc("use value for given property") .build()); options.addOption(Option.builder(PROJECT_CP_OPT) .hasArg() .desc("classpath of the project under test and all its dependencies") .build()); options.addOption(Option.builder(TARGET_FRAME_OPT) .hasArg() .desc("Level of the target frame") .build()); options.addOption(Option.builder(CRASH_LOG_OPT) .hasArg() .desc("File with the stack trace") .build()); options.addOption(Option.builder(MODEL_PATH_OPT) .hasArg() .desc("Directory of models generated by Botsing model generator") .build()); options.addOption(Option.builder(SEARCH_ALGORITHM) .hasArg() .desc("Select the search algorithm.") .build()); options.addOption(Option.builder(FITNESS_FUNCTION) .hasArg() .desc("Fitness function for guidance of the search algorithm") .build()); options.addOption(Option.builder(INTEGRATION_TESTING) .desc("Use integration testing for crash reproduction") .build()); options.addOption(Option.builder(HELP_OPT) .desc("Prints this help message.") .build()); options.addOption(Option.builder(IO_DIVERSITY) .desc("Enables I/O diversity") .build()); return options; }  static Options getCommandLineOptions(); }
CommandLineParameters { public static Options getCommandLineOptions() { Options options = new Options(); options.addOption(Option.builder(D_OPT) .numberOfArgs(2) .argName("property=value") .valueSeparator() .desc("use value for given property") .build()); options.addOption(Option.builder(PROJECT_CP_OPT) .hasArg() .desc("classpath of the project under test and all its dependencies") .build()); options.addOption(Option.builder(TARGET_FRAME_OPT) .hasArg() .desc("Level of the target frame") .build()); options.addOption(Option.builder(CRASH_LOG_OPT) .hasArg() .desc("File with the stack trace") .build()); options.addOption(Option.builder(MODEL_PATH_OPT) .hasArg() .desc("Directory of models generated by Botsing model generator") .build()); options.addOption(Option.builder(SEARCH_ALGORITHM) .hasArg() .desc("Select the search algorithm.") .build()); options.addOption(Option.builder(FITNESS_FUNCTION) .hasArg() .desc("Fitness function for guidance of the search algorithm") .build()); options.addOption(Option.builder(INTEGRATION_TESTING) .desc("Use integration testing for crash reproduction") .build()); options.addOption(Option.builder(HELP_OPT) .desc("Prints this help message.") .build()); options.addOption(Option.builder(IO_DIVERSITY) .desc("Enables I/O diversity") .build()); return options; }  static Options getCommandLineOptions(); static final String D_OPT; static final String PROJECT_CP_OPT; static final String TARGET_FRAME_OPT; static final String CRASH_LOG_OPT; static final String MODEL_PATH_OPT; static final String HELP_OPT; static final String INTEGRATION_TESTING; static final String DISABLE_LINE_ESTIMATION; static final String IO_DIVERSITY; static final String SEARCH_ALGORITHM; static final String FITNESS_FUNCTION; }