@Test public void testMain() { String inputFilename = "src/test/resources/psm_sli.xmi"; String outputFilename = "PsmCreatorOutput.xml"; PsmCreator.main(new String[]{inputFilename, outputFilename}); 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_XMI_FILENAME; String outputFilename = (args.length == 2) ? args[1] : DEFAULT_OUTPUT_XML_FILENAME; try { final Model model = XmiReader.readModel(inputFilename); final PsmConfig<Type> psm = convert(model); PsmConfigWriter.writeConfig(psm, model, outputFilename); } catch (final FileNotFoundException e) { LOG.warn(e.getMessage()); } }
PsmCreator { public static void main(final String[] args) { String inputFilename = (args.length == 2) ? args[0] : DEFAULT_INPUT_XMI_FILENAME; String outputFilename = (args.length == 2) ? args[1] : DEFAULT_OUTPUT_XML_FILENAME; try { final Model model = XmiReader.readModel(inputFilename); final PsmConfig<Type> psm = convert(model); PsmConfigWriter.writeConfig(psm, model, outputFilename); } catch (final FileNotFoundException e) { LOG.warn(e.getMessage()); } } }
PsmCreator { public static void main(final String[] args) { String inputFilename = (args.length == 2) ? args[0] : DEFAULT_INPUT_XMI_FILENAME; String outputFilename = (args.length == 2) ? args[1] : DEFAULT_OUTPUT_XML_FILENAME; try { final Model model = XmiReader.readModel(inputFilename); final PsmConfig<Type> psm = convert(model); PsmConfigWriter.writeConfig(psm, model, outputFilename); } catch (final FileNotFoundException e) { LOG.warn(e.getMessage()); } } PsmCreator(); }
PsmCreator { public static void main(final String[] args) { String inputFilename = (args.length == 2) ? args[0] : DEFAULT_INPUT_XMI_FILENAME; String outputFilename = (args.length == 2) ? args[1] : DEFAULT_OUTPUT_XML_FILENAME; try { final Model model = XmiReader.readModel(inputFilename); final PsmConfig<Type> psm = convert(model); PsmConfigWriter.writeConfig(psm, model, outputFilename); } catch (final FileNotFoundException e) { LOG.warn(e.getMessage()); } } PsmCreator(); static void main(final String[] args); }
PsmCreator { public static void main(final String[] args) { String inputFilename = (args.length == 2) ? args[0] : DEFAULT_INPUT_XMI_FILENAME; String outputFilename = (args.length == 2) ? args[1] : DEFAULT_OUTPUT_XML_FILENAME; try { final Model model = XmiReader.readModel(inputFilename); final PsmConfig<Type> psm = convert(model); PsmConfigWriter.writeConfig(psm, model, outputFilename); } catch (final FileNotFoundException e) { LOG.warn(e.getMessage()); } } PsmCreator(); static void main(final String[] args); static final String DEFAULT_INPUT_XMI_FILENAME; static final String DEFAULT_OUTPUT_XML_FILENAME; }