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 TypeMethodDescriptionvoidcompleted(TestResult tr) The test has completed, and the results are now immutable.voidcompletedOutput(TestResult tr, TestResult.Section section, String outputName) Output has been completed in a section of the test result.voidcompletedSection(TestResult tr, TestResult.Section section) A section has been been completed in the test result.voidcreatedOutput(TestResult tr, TestResult.Section section, String outputName) New output has been created in a section of the test result.voidcreatedSection(TestResult tr, TestResult.Section section) A new section has been created in the test result.voidupdatedOutput(TestResult tr, TestResult.Section section, String outputName, int start, int end, String text) The output for a section has been updated.voidupdatedProperty(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.
-