Package org.eclipse.jdt.junit
Interface ITestRunListener
-
@Deprecated public interface ITestRunListener
Deprecated.As of 3.3, replaced byTestRunListenerA listener interface for observing the execution of a test run.Clients contributing to the
org.eclipse.jdt.junit.testRunListenerextension point implement this interface.- Since:
- 2.1
-
-
Field Summary
Fields Modifier and Type Field Description static intSTATUS_ERRORDeprecated.Status constant indicating that a test had an error an unanticipated exception (constant value 1).static intSTATUS_FAILUREDeprecated.Status constant indicating that a test failed an assertion (constant value 2).static intSTATUS_OKDeprecated.Status constant indicating that a test passed (constant value 0).
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidtestEnded(String testId, String testName)Deprecated.An individual test has ended.voidtestFailed(int status, String testId, String testName, String trace)Deprecated.An individual test has failed with a stack trace.voidtestReran(String testId, String testClass, String testName, int status, String trace)Deprecated.An individual test has been rerun.voidtestRunEnded(long elapsedTime)Deprecated.A test run has ended.voidtestRunStarted(int testCount)Deprecated.A test run has started.voidtestRunStopped(long elapsedTime)Deprecated.A test run has been stopped prematurely.voidtestRunTerminated()Deprecated.The VM instance performing the tests has terminated.voidtestStarted(String testId, String testName)Deprecated.An individual test has started.
-
-
-
Field Detail
-
STATUS_OK
static final int STATUS_OK
Deprecated.Status constant indicating that a test passed (constant value 0).
-
STATUS_ERROR
static final int STATUS_ERROR
Deprecated.Status constant indicating that a test had an error an unanticipated exception (constant value 1).
-
STATUS_FAILURE
static final int STATUS_FAILURE
Deprecated.Status constant indicating that a test failed an assertion (constant value 2).
-
-
Method Detail
-
testRunStarted
void testRunStarted(int testCount)
Deprecated.A test run has started.- Parameters:
testCount- the number of individual tests that will be run
-
testRunEnded
void testRunEnded(long elapsedTime)
Deprecated.A test run has ended.- Parameters:
elapsedTime- the total elapsed time of the test run
-
testRunStopped
void testRunStopped(long elapsedTime)
Deprecated.A test run has been stopped prematurely.- Parameters:
elapsedTime- the time elapsed before the test run was stopped
-
testStarted
void testStarted(String testId, String testName)
Deprecated.An individual test has started.- Parameters:
testId- a unique Id identifying the testtestName- the name of the test that started
-
testEnded
void testEnded(String testId, String testName)
Deprecated.An individual test has ended.- Parameters:
testId- a unique Id identifying the testtestName- the name of the test that ended
-
testFailed
void testFailed(int status, String testId, String testName, String trace)Deprecated.An individual test has failed with a stack trace.- Parameters:
status- the outcome of the test; one ofSTATUS_ERRORorSTATUS_FAILUREtestId- a unique Id identifying the testtestName- the name of the test that failedtrace- the stack trace
-
testRunTerminated
void testRunTerminated()
Deprecated.The VM instance performing the tests has terminated.
-
testReran
void testReran(String testId, String testClass, String testName, int status, String trace)
Deprecated.An individual test has been rerun.- Parameters:
testId- a unique Id identifying the testtestClass- the name of the test class that was reruntestName- the name of the test that was rerunstatus- the outcome of the test that was rerun; one ofSTATUS_OK,STATUS_ERROR, orSTATUS_FAILUREtrace- the stack trace in the case of abnormal termination, or the empty string if none
-
-