testlistener.java

来自「MoMEUnit是一个单元测试的J2ME的应用程序xUnit架构实例。这是来自J」· Java 代码 · 共 50 行

JAVA
50
字号
package momeunit.framework;/** * A Listener for test progress *  * @author Sergio Morozov * @version 1.1.2 */public interface TestListener{  /**   * Informs this listener that an error has occurred.   *    * @param test   *          test that threw an exception.   * @param t   *          Throwable thrown while executing test.   * @since 1.0   */  public void addError(Test test, Throwable t);  /**   * Informs this listener that a failure has occurred.   *    * @param test   *          test that failed.   * @param t   *          {@link AssertionFailedError} that describes failure.   * @since 1.0   */  public void addFailure(Test test, AssertionFailedError t);  /**   * Informs this listener about the end of test.   *    * @param test   *          ended test.   * @since 1.0   */  public void endTest(Test test);  /**   * Informs this listener that a test has started.   *    * @param test   *          started test.   * @since 1.0   */  public void startTest(Test test);}

⌨️ 快捷键说明

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