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