コード例 #1
0
  /**
   * 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);
  }
コード例 #2
0
  /**
   * 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);
  }