public static interface Harness.Observer
Modifier and Type | Method and Description |
---|---|
void |
error(java.lang.String msg)
The given error occurred.
|
void |
finishedTest(TestResult tr)
The harness has finished running the given test.
|
void |
finishedTesting()
The harness has finished running tests and is doing other activities
(writing the report, updating caches, etc...).
|
void |
finishedTestRun(boolean allOK)
The test run has been completed, either because the user requested
that the harness stop, the harness decided to terminate the test run,
or all requested tests have been run.
|
void |
startingTest(TestResult tr)
The harness is about to run the given test.
|
void |
startingTestRun(Parameters params)
The harness is beginning to execute tests.
|
void |
stoppingTestRun()
The harness is about to stop a test run, before it has finished
executing all the specified tests.
|
void startingTestRun(Parameters params)
params
- the parameters for the test runvoid startingTest(TestResult tr)
tr
- The test result which is going to receive the data
from the current execution of that test.void finishedTest(TestResult tr)
tr
- The result object containing the results from the
execution which was just completed.void stoppingTestRun()
void finishedTesting()
void finishedTestRun(boolean allOK)
allOK
- True if all tests passed, false otherwise.void error(java.lang.String msg)
msg
- A description of the error event.Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.