コード例 #1
0
  /**
   * Calling of the method indicates that the <code>method</code> test should be called. The method
   * checks this and if it is not called, calls it. If the method is failed or skipped, it throws
   * StatusException.
   */
  protected void requiredMethod(String method) {
    log.println("starting required method: " + method);
    executeMethod(method);
    Status mtStatus = tRes.getStatusFor(method);

    if (mtStatus != null && (!mtStatus.isPassed() || mtStatus.isFailed())) {
      log.println("! Required method " + method + " failed");
      throw new StatusException(mtStatus);
    }
  }