This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/commons-xml.git
commit e9239989a658351d774946e37589e7f7267f82ff Author: Gary Gregory <[email protected]> AuthorDate: Fri Aug 28 13:37:08 2026 -0400 Renames in test assertion messages. --- src/test/java/org/apache/commons/xml/AttackTestSupport.java | 6 +++--- .../java/org/apache/commons/xml/SaxonXPathExternalCallsTest.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/xml/AttackTestSupport.java b/src/test/java/org/apache/commons/xml/AttackTestSupport.java index e79ca36..6104239 100644 --- a/src/test/java/org/apache/commons/xml/AttackTestSupport.java +++ b/src/test/java/org/apache/commons/xml/AttackTestSupport.java @@ -265,7 +265,7 @@ private static void assertNoLeakOrThrows(final ThrowingSupplier<String> action, throw new AssertionError(blockedDescription(description) + " (got " + thrown.getClass().getName() + ")", thrown); } assertFalse(output.contains(LEAKED_MARKER), - "Hardening did not block " + description + "; output contained marker '" + LEAKED_MARKER + "'.\nFull output:\n" + output); + "Securing did not block " + description + "; output contained marker '" + LEAKED_MARKER + "'.\nFull output:\n" + output); } /** @@ -281,7 +281,7 @@ private static void assertNoLeakOrThrows(final ThrowingSupplier<String> action, private static void assertNoLeakStrict(final ThrowingSupplier<String> action, final String description) { final String output = assertDoesNotThrow(action, "Hardened " + description + " parse must not throw"); assertFalse(output.contains(LEAKED_MARKER), - "Hardening did not block " + description + "; output contained marker '" + LEAKED_MARKER + "'.\nFull output:\n" + output); + "Securing did not block " + description + "; output contained marker '" + LEAKED_MARKER + "'.\nFull output:\n" + output); } /** @@ -743,7 +743,7 @@ static void assumeDoesNotThrow(final Executable action) { * @return The assertion-failure message string. */ private static String blockedDescription(final String description) { - return "Hardening did not block " + description + "; parse completed successfully."; + return "Securing did not block " + description + "; parse completed successfully."; } /** Parses the source through the supplied reader, with {@link #STRICT_REPORTER} installed, and returns the accumulated character data. */ diff --git a/src/test/java/org/apache/commons/xml/SaxonXPathExternalCallsTest.java b/src/test/java/org/apache/commons/xml/SaxonXPathExternalCallsTest.java index aa6feac..d2d7f27 100644 --- a/src/test/java/org/apache/commons/xml/SaxonXPathExternalCallsTest.java +++ b/src/test/java/org/apache/commons/xml/SaxonXPathExternalCallsTest.java @@ -64,7 +64,7 @@ private static void assertCallExcludesMarker(final XPathFactory factory, final S return; // hardening blocked at evaluation; acceptable outcome. } assertFalse(result.contains(MARKER), - "Hardening did not block the external reference; result contained marker '" + MARKER + "'.\nFull result:\n" + result); + "Securing did not block the external reference; result contained marker '" + MARKER + "'.\nFull result:\n" + result); } private static void assertCallLeaksMarker(final XPathFactory factory, final String expression) {
