GenClientLibAction extends EndpointsToolAction { @Override public boolean execute() throws IOException { if (getArgs().size() != 1) { return false; } genClientLibFromFile(getLanguage(languageOption), getOutputPath(outputOption), getArgs().get(0), getBuildSystem(buildSystemOption)); return true; } GenClientLibAction(); @Override boolean execute(); Object genClientLibFromFile(String language, String outputDirPath, String discoveryDocPath,
      String buildSystem); Object genClientLib(String language, String outputDirPath, String discoveryDoc,
      String buildSystem); @Override String getUsageString(); static final String NAME; }
@Test public void testGenClientLibWithoutBuildSystem() throws Exception { tool.execute( new String[]{GenClientLibAction.NAME, option(EndpointsToolAction.OPTION_LANGUAGE_SHORT), "java", option(EndpointsToolAction.OPTION_OUTPUT_DIR_SHORT), "outputDir", "discoveryDocPath"}); assertFalse(usagePrinted); assertEquals("java", language); assertEquals("outputDir", outputDirPath); assertEquals("discoveryDocPath", discoveryDocPath); assertEquals(null, buildSystem); }