@Test public void testMain() { String inputSliXmiFilename = "src/test/resources/SLI.xmi"; String inputEdfiXmiFilename = "src/test/resources/Ed-Fi-Core.xmi"; String[] args = new String[]{inputSliXmiFilename, inputEdfiXmiFilename}; final StringBuffer stringBuffer = new StringBuffer(); PrintStream stdOut = System.out; PrintStream myOut = new PrintStream(new OutputStream() { @Override public void write(int b) throws IOException { stringBuffer.append((char) b); } }); System.setOut(myOut); EdFiSLICmdLine.main(args); System.setOut(stdOut); assertFalse(stringBuffer.toString().equals("")); }
public static void main(final String[] args) { String sliInputFilename = (args.length == 2) ? args[0] : DEFAULT_SLI_INPUT_FILENAME; String edfiInputFilename = (args.length == 2) ? args[1] : DEFAULT_EDFI_INPUT_FILENAME; try { final ModelIndex slim = new DefaultModelIndex(XmiReader.readModel(sliInputFilename)); final ModelIndex edfi = new DefaultModelIndex(XmiReader.readModel(edfiInputFilename)); compareClasses(slim, edfi); } catch (final FileNotFoundException e) { throw new EdFiSLIRuntimeException(e); } }
EdFiSLICmdLine { public static void main(final String[] args) { String sliInputFilename = (args.length == 2) ? args[0] : DEFAULT_SLI_INPUT_FILENAME; String edfiInputFilename = (args.length == 2) ? args[1] : DEFAULT_EDFI_INPUT_FILENAME; try { final ModelIndex slim = new DefaultModelIndex(XmiReader.readModel(sliInputFilename)); final ModelIndex edfi = new DefaultModelIndex(XmiReader.readModel(edfiInputFilename)); compareClasses(slim, edfi); } catch (final FileNotFoundException e) { throw new EdFiSLIRuntimeException(e); } } }
EdFiSLICmdLine { public static void main(final String[] args) { String sliInputFilename = (args.length == 2) ? args[0] : DEFAULT_SLI_INPUT_FILENAME; String edfiInputFilename = (args.length == 2) ? args[1] : DEFAULT_EDFI_INPUT_FILENAME; try { final ModelIndex slim = new DefaultModelIndex(XmiReader.readModel(sliInputFilename)); final ModelIndex edfi = new DefaultModelIndex(XmiReader.readModel(edfiInputFilename)); compareClasses(slim, edfi); } catch (final FileNotFoundException e) { throw new EdFiSLIRuntimeException(e); } } EdFiSLICmdLine(); }
EdFiSLICmdLine { public static void main(final String[] args) { String sliInputFilename = (args.length == 2) ? args[0] : DEFAULT_SLI_INPUT_FILENAME; String edfiInputFilename = (args.length == 2) ? args[1] : DEFAULT_EDFI_INPUT_FILENAME; try { final ModelIndex slim = new DefaultModelIndex(XmiReader.readModel(sliInputFilename)); final ModelIndex edfi = new DefaultModelIndex(XmiReader.readModel(edfiInputFilename)); compareClasses(slim, edfi); } catch (final FileNotFoundException e) { throw new EdFiSLIRuntimeException(e); } } EdFiSLICmdLine(); static void main(final String[] args); }
EdFiSLICmdLine { public static void main(final String[] args) { String sliInputFilename = (args.length == 2) ? args[0] : DEFAULT_SLI_INPUT_FILENAME; String edfiInputFilename = (args.length == 2) ? args[1] : DEFAULT_EDFI_INPUT_FILENAME; try { final ModelIndex slim = new DefaultModelIndex(XmiReader.readModel(sliInputFilename)); final ModelIndex edfi = new DefaultModelIndex(XmiReader.readModel(edfiInputFilename)); compareClasses(slim, edfi); } catch (final FileNotFoundException e) { throw new EdFiSLIRuntimeException(e); } } EdFiSLICmdLine(); static void main(final String[] args); static final String DEFAULT_SLI_INPUT_FILENAME; static final String DEFAULT_EDFI_INPUT_FILENAME; }