⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 windowhandler.java

📁 基于Junit的 功能和单元测试的的测试工具。只支持Swing.
💻 JAVA
字号:
package org.uispec4j.interception;

import org.uispec4j.Trigger;
import org.uispec4j.Window;

/**
 * Interface used for defining modal dialog handlers.
 *
 * @see WindowInterceptor
 * @see <a href="http://www.uispec4j.org/interception.html">Intercepting windows</a>
 */
public abstract class WindowHandler {
  private String name;

  protected WindowHandler() {
  }

  /**
   * Gives a name to the handler, for description purposes only.
   * The name is used to clarify the test code, and it will be used by UISpec4J
   * when displaying error messages.
   */
  protected WindowHandler(String stepName) {
    this.name = stepName;
  }

  /**
   * Handles the shown window and returns a trigger that will close it.
   */
  public abstract Trigger process(Window window) throws Exception;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -