Package com.sun.javatest
Interface TestResult.Observer
- Enclosing class:
TestResult
public static interface TestResult.Observer
An interface to observe activity in a TestResult as it is created.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
completed
(TestResult tr) The test has completed, and the results are now immutable.void
completedOutput
(TestResult tr, TestResult.Section section, String outputName) Output has been completed in a section of the test result.void
completedSection
(TestResult tr, TestResult.Section section) A section has been been completed in the test result.void
createdOutput
(TestResult tr, TestResult.Section section, String outputName) New output has been created in a section of the test result.void
createdSection
(TestResult tr, TestResult.Section section) A new section has been created in the test result.void
updatedOutput
(TestResult tr, TestResult.Section section, String outputName, int start, int end, String text) The output for a section has been updated.void
updatedProperty
(TestResult tr, String name, String value) A property of the test result has been updated.
-
Method Details
-
createdSection
A new section has been created in the test result.- Parameters:
tr
- The test result in which the section was created.section
- The section that has been created
-
completedSection
A section has been been completed in the test result.- Parameters:
tr
- The test result containing the section.section
- The section that has been completed.
-
createdOutput
New output has been created in a section of the test result.- Parameters:
tr
- The test result containing the output.section
- The section in which the output has been created.outputName
- The name of the output.
-
completedOutput
Output has been completed in a section of the test result.- Parameters:
tr
- The test result containing the output.section
- The section in which the output has been completed.outputName
- The name of the output.
-
updatedOutput
void updatedOutput(TestResult tr, TestResult.Section section, String outputName, int start, int end, String text) The output for a section has been updated.- Parameters:
tr
- The test result object being modified.section
- The section in which the output is being produced.outputName
- The name of the output.start
- the start offset of the text that was changedend
- the end offset of the text that was changedtext
- the text that replaced the specified range.
-
updatedProperty
A property of the test result has been updated.- Parameters:
tr
- The test result containing the property that was modified.name
- The key for the property that was modified.value
- The new value for the property.
-
completed
The test has completed, and the results are now immutable. There will be no further observer calls.- Parameters:
tr
- The test result that has been completed.
-