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