momeunit.framework
Interface TestListener

All Known Implementing Classes:
AntTestRunner, TestScreen

public interface TestListener

A Listener for test progress

Version:
1.1.2
Author:
Sergio Morozov

Method Summary
 void addError(Test test, Throwable t)
          Informs this listener that an error has occurred.
 void addFailure(Test test, AssertionFailedError t)
          Informs this listener that a failure has occurred.
 void endTest(Test test)
          Informs this listener about the end of test.
 void startTest(Test test)
          Informs this listener that a test has started.
 

Method Detail

addError

void addError(Test test,
              Throwable t)
Informs this listener that an error has occurred.

Parameters:
test - test that threw an exception.
t - Throwable thrown while executing test.
Since:
1.0

addFailure

void addFailure(Test test,
                AssertionFailedError t)
Informs this listener that a failure has occurred.

Parameters:
test - test that failed.
t - AssertionFailedError that describes failure.
Since:
1.0

endTest

void endTest(Test test)
Informs this listener about the end of test.

Parameters:
test - ended test.
Since:
1.0

startTest

void startTest(Test test)
Informs this listener that a test has started.

Parameters:
test - started test.
Since:
1.0