コード例 #1
0
  /**
   * Configures the CheckOptionHandler uses for testing the optionhandling. Sets the scheme to test.
   *
   * @return the fully configured CheckOptionHandler
   */
  protected CheckOptionHandler getOptionTester() {
    CheckOptionHandler result;

    result = new CheckOptionHandler();
    result.setOptionHandler(getGenerator());
    result.setUserOptions(new String[0]);
    result.setSilent(true);

    return result;
  }
コード例 #2
0
  /**
   * Configures the CheckOptionHandler uses for testing the optionhandling. Sets the Kernel return
   * from the getKernel() method.
   *
   * @return the fully configured CheckOptionHandler
   * @see #getKernel()
   */
  protected CheckOptionHandler getOptionTester() {
    CheckOptionHandler result;

    result = new CheckOptionHandler();
    if (getKernel() instanceof OptionHandler) result.setOptionHandler((OptionHandler) getKernel());
    else result.setOptionHandler(null);
    result.setUserOptions(new String[0]);
    result.setSilent(true);

    return result;
  }