Class TestRoundtrip


  • public class TestRoundtrip
    extends Object
    Test program for the JiBX framework. Works with two or three command line arguments: mapped-class, in-file, and out-file (optional, only needed if different from in-file). You can also supply a multiple of three input arguments, in which case each set of three is processed in turn (in this case the out-file is required). Unmarshals documents from files using the binding defined for the mapped class, then marshals them back out using the same bindings and compares the results. In case of a comparison error the output file is left as temp.xml.
    Version:
    1.0
    Author:
    Dennis M. Sosnoski
    • Constructor Detail

      • TestRoundtrip

        public TestRoundtrip()
    • Method Detail

      • runTest

        protected static boolean runTest​(String mname,
                                         String bname,
                                         String fin,
                                         String fout)
                                  throws IOException,
                                         org.jibx.runtime.JiBXException,
                                         org.xmlpull.v1.XmlPullParserException
        Throws:
        IOException
        org.jibx.runtime.JiBXException
        org.xmlpull.v1.XmlPullParserException
      • main

        public static void main​(String[] args)