@Test public void testConfigurationArgument() { Cob2XsdMain main = new Cob2XsdMain(); try { main.execute(new String[] { "-c", "src/main/resources/cob2xsd.properties", "-i", COBOL_SAMPLES_DIR + "/LSFILEAE", "-o", tempFolder.getAbsolutePath() + "/myfile.xsd", "-n", "http: File result = new File(tempFolder, "myfile.xsd"); assertTrue(result.exists()); assertTrue(FileUtils.readFileToString(result).contains( "xmlns:tns=\"http: result.deleteOnExit(); } catch (Exception e) { fail(e.getMessage()); } }
public void execute(final String[] args) { try { Options options = createOptions(); if (collectOptions(options, args)) { setDefaults(); loadConfig(); execute(getInput(), getInputEncoding(), getOutput(), getTargetNamespacePrefix(), getXsltFileName()); } } catch (Exception e) { _log.error("COBOL to Xsd translation failure", e); throw new RuntimeException(e); } }
Cob2XsdMain { public void execute(final String[] args) { try { Options options = createOptions(); if (collectOptions(options, args)) { setDefaults(); loadConfig(); execute(getInput(), getInputEncoding(), getOutput(), getTargetNamespacePrefix(), getXsltFileName()); } } catch (Exception e) { _log.error("COBOL to Xsd translation failure", e); throw new RuntimeException(e); } } }
Cob2XsdMain { public void execute(final String[] args) { try { Options options = createOptions(); if (collectOptions(options, args)) { setDefaults(); loadConfig(); execute(getInput(), getInputEncoding(), getOutput(), getTargetNamespacePrefix(), getXsltFileName()); } } catch (Exception e) { _log.error("COBOL to Xsd translation failure", e); throw new RuntimeException(e); } }  }
Cob2XsdMain { public void execute(final String[] args) { try { Options options = createOptions(); if (collectOptions(options, args)) { setDefaults(); loadConfig(); execute(getInput(), getInputEncoding(), getOutput(), getTargetNamespacePrefix(), getXsltFileName()); } } catch (Exception e) { _log.error("COBOL to Xsd translation failure", e); throw new RuntimeException(e); } }  static void main(final String[] args); void execute(final String[] args); File getConfigFile(); void setConfigFile(final String config); void setConfigFile(final File configFile); void setInput(final String input); String getInputEncoding(); void setInputEncoding(String inputEncoding); void setOutput(final String output); void setTargetNamespacePrefix(String targetNamespacePrefix); void setXsltFileName(String xsltFileName); Cob2XsdConfig getConfig(); File getInput(); File getOutput(); String getTargetNamespacePrefix(); String getXsltFileName(); }
Cob2XsdMain { public void execute(final String[] args) { try { Options options = createOptions(); if (collectOptions(options, args)) { setDefaults(); loadConfig(); execute(getInput(), getInputEncoding(), getOutput(), getTargetNamespacePrefix(), getXsltFileName()); } } catch (Exception e) { _log.error("COBOL to Xsd translation failure", e); throw new RuntimeException(e); } }  static void main(final String[] args); void execute(final String[] args); File getConfigFile(); void setConfigFile(final String config); void setConfigFile(final File configFile); void setInput(final String input); String getInputEncoding(); void setInputEncoding(String inputEncoding); void setOutput(final String output); void setTargetNamespacePrefix(String targetNamespacePrefix); void setXsltFileName(String xsltFileName); Cob2XsdConfig getConfig(); File getInput(); File getOutput(); String getTargetNamespacePrefix(); String getXsltFileName(); static final String LS; }