GlobalLauncher implements ILauncher { public void launch(final String[] cmdArgs, final String moduleName, final String className) throws APIRestGeneratorException { final GenerationParameters genParams = new GenerationParameters(); this.parseAndValidateCommandLine(cmdArgs); this.applyCommonParameters(genParams); final ParsedInfo parsedInfo = ParserUtil.getSchemasParser(genParams).parse(); final ParsedInfoHandler parsedInfoHandler = new ParsedInfoHandler(parsedInfo); final GeneratorGlobal generator = new GeneratorGlobal(genParams, parsedInfoHandler); generator.start(moduleName, className); }  void launch(final String[] cmdArgs, final String moduleName, final String className);  }
@Test public void fullTest() { try { String[] commandLine = new String[]{CMD_LINE_YAML_FILE_PATH, CMD_LINE_CODEGEN_OUTPUT_DIR, CMD_LINE_PARSER_TYPE} ; final GlobalLauncher globalLauncher = new GlobalLauncher() ; globalLauncher.launch(commandLine, "example", "GeneratorGlobalExample") ; } catch (APIRestGeneratorException apiRestGeneratorExc) { Assert.fail(apiRestGeneratorExc.getMessage()) ; } }