Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 610388338
Change-Id: I1f9cf94b256230525c8b14f91180550e23ed9b06
  • Loading branch information
Googler authored and copybara-github committed Feb 26, 2024
1 parent f05c9d0 commit 81fa509
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,23 @@ public void testRunInterrupted() {
rootNode.testInterrupted(now());
}

/**
* Indicate that the test case with the given key has requested that a property be written in the
* XML.
*
* <p>
*
* @param description key for a test case
* @param name The property name.
* @param value The property value.
*/
public void testEmittedProperty(Description description, String name, String value) {
TestCaseNode testCase = getTestCase(description);
if (testCase != null) {
testCase.exportProperty(name, value);
}
}

/**
* Adds a failure to the test with the given key. If the specified test is suite, the failure will
* be added to all its children.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,13 @@ public void writeCharacters(String text) throws IOException {
}
writer.write(XmlEscapers.xmlContentEscaper().escape(text));
}

/**
* Gets the writer that this object uses for writing.
*
* VisibleForTesting
*/
Writer getUnderlyingWriter() {
return writer;
}
}

0 comments on commit 81fa509

Please sign in to comment.