コード例 #1
0
  /*
   * Main entry point for this test.
   */
  public static void main(String args[]) throws Exception {
    if (debug) {
      System.setProperty("javax.net.debug", "all");
    }

    if (loadException != null) {
      throw loadException;
    }

    // Prime the session cache with a good session
    // Second connection should be a simple session resumption.
    if ((new RehandshakeFinished().runTest()) != new RehandshakeFinished().runRehandshake()) {
      throw new Exception("Sessions not equivalent");
    }

    System.out.println("Test Passed.");
  }