Package org.jibx.extras
Class TestRoundtrip
java.lang.Object
org.jibx.extras.TestRoundtrip
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
TestRoundtrip
public TestRoundtrip()
-
-
Method Details
-
runTest
protected static boolean runTest(String mname, String bname, String fin, String fout) throws IOException, JiBXException, XmlPullParserException - Throws:
IOException
JiBXException
XmlPullParserException
-
main
-