@Test public void testMain() { String inputFilename = "src/test/resources/scaffold_eapplication.wadl"; String outputFilename = "cleaned_domain_SLI.wadl"; String[] args = new String[]{inputFilename, outputFilename}; Wadl2Doc.main(args); File file = new File(outputFilename); assertTrue(file.exists()); file.delete(); }
public static void main(final String[] args) { String inputFilename = (args.length == 2) ? args[0] : DEFAULT_INPUT_FILENAME; String outputFilename = (args.length == 2) ? args[1] : DEFAULT_OUTPUT_FILENAME; try { final Map<String, String> prefixMappings = new HashMap<String, String>(); final Application app = WadlReader.readApplication(inputFilename); WadlWriter.writeDocument(app, prefixMappings, outputFilename); } catch (final FileNotFoundException e) { LOG.warn(e.getMessage()); } }
Wadl2Doc { public static void main(final String[] args) { String inputFilename = (args.length == 2) ? args[0] : DEFAULT_INPUT_FILENAME; String outputFilename = (args.length == 2) ? args[1] : DEFAULT_OUTPUT_FILENAME; try { final Map<String, String> prefixMappings = new HashMap<String, String>(); final Application app = WadlReader.readApplication(inputFilename); WadlWriter.writeDocument(app, prefixMappings, outputFilename); } catch (final FileNotFoundException e) { LOG.warn(e.getMessage()); } } }
Wadl2Doc { public static void main(final String[] args) { String inputFilename = (args.length == 2) ? args[0] : DEFAULT_INPUT_FILENAME; String outputFilename = (args.length == 2) ? args[1] : DEFAULT_OUTPUT_FILENAME; try { final Map<String, String> prefixMappings = new HashMap<String, String>(); final Application app = WadlReader.readApplication(inputFilename); WadlWriter.writeDocument(app, prefixMappings, outputFilename); } catch (final FileNotFoundException e) { LOG.warn(e.getMessage()); } } Wadl2Doc(); }
Wadl2Doc { public static void main(final String[] args) { String inputFilename = (args.length == 2) ? args[0] : DEFAULT_INPUT_FILENAME; String outputFilename = (args.length == 2) ? args[1] : DEFAULT_OUTPUT_FILENAME; try { final Map<String, String> prefixMappings = new HashMap<String, String>(); final Application app = WadlReader.readApplication(inputFilename); WadlWriter.writeDocument(app, prefixMappings, outputFilename); } catch (final FileNotFoundException e) { LOG.warn(e.getMessage()); } } Wadl2Doc(); static void main(final String[] args); }
Wadl2Doc { public static void main(final String[] args) { String inputFilename = (args.length == 2) ? args[0] : DEFAULT_INPUT_FILENAME; String outputFilename = (args.length == 2) ? args[1] : DEFAULT_OUTPUT_FILENAME; try { final Map<String, String> prefixMappings = new HashMap<String, String>(); final Application app = WadlReader.readApplication(inputFilename); WadlWriter.writeDocument(app, prefixMappings, outputFilename); } catch (final FileNotFoundException e) { LOG.warn(e.getMessage()); } } Wadl2Doc(); static void main(final String[] args); static final String DEFAULT_INPUT_FILENAME; static final String DEFAULT_OUTPUT_FILENAME; }