/** * Transform host data and test java data object result. * * @throws Exception if transforming fails */ public void testHostToJavaTransformer() throws Exception { DfhcommareaHostToJavaTransformer transformer = new DfhcommareaHostToJavaTransformer(); Dfhcommarea dfhcommarea = transformer.transform(HostData.toByteArray(RedsimptCases.getHostBytesHex())); RedsimptCases.checkJavaObject(dfhcommarea); }
/** * Unmarshal host data and test java data object result. * * @throws Exception if marshaling fails */ public void testRedsimpt() throws Exception { String hexString = RedsimptCases.getHostBytesHex(); byte[] hostBytes = HostData.toByteArray(hexString); Dfhcommarea dfhcommarea = (Dfhcommarea) Util.unmarshal(hostBytes, "redsimpt"); RedsimptCases.checkJavaObject(dfhcommarea); }