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 cea2237c819f54e490cc3019974a1c1a268cfeef Author: Gary Gregory <[email protected]> AuthorDate: Fri Aug 28 14:31:42 2026 -0400 Javadoc: "hardening" -> "secure" wording to match new class and method names. Rename test methods. --- .../org/apache/commons/xml/BillionLaughsTest.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/java/org/apache/commons/xml/BillionLaughsTest.java b/src/test/java/org/apache/commons/xml/BillionLaughsTest.java index f0f6dff..30416b5 100644 --- a/src/test/java/org/apache/commons/xml/BillionLaughsTest.java +++ b/src/test/java/org/apache/commons/xml/BillionLaughsTest.java @@ -24,9 +24,9 @@ /** * Checks whether parsers reject a Billion Laughs payload (nested entity expansion in the internal DTD subset). * - * <p>Each {@code hardened*} test asserts the library blocks the payload; + * <p>Each {@code secure*} test asserts the library blocks the payload; * its {@code unconfigured*} positive control asserts the same payload parses once the limit is disabled, - * so a block reflects the hardening rather than a broken wrapper. + * so a block reflects the secure rather than a broken wrapper. * The library pins no custom entity-expansion limit; each parser keeps its own secure-processing default, which varies by implementation: * {@code 2,500} (stock JDK), * {@code 64,000} (external Xerces under {@code FEATURE_SECURE_PROCESSING}), @@ -136,7 +136,7 @@ private static String xsltPayload() { @Test @Tag("dom") - void hardenedDomBlocks() { + void secureDomBlocks() { Assumptions.assumeTrue(AttackTestSupport.DOM_RESOLVES_INTERNAL_ENTITIES, "Skipped: platform DOM does not resolve user-defined entities"); AttackTestSupport.assertDomBlocks(xmlPayload()); @@ -144,43 +144,43 @@ void hardenedDomBlocks() { @Test @Tag("sax") - void hardenedSaxBlocks() { + void secureSaxBlocks() { AttackTestSupport.assertSaxBlocks(xmlPayload()); } @Test @Tag("schema") - void hardenedSchemaBlocks() { + void secureSchemaBlocks() { AttackTestSupport.assertSchemaBlocks(AttackTestSupport.streamSource(xsdPayload())); } @Test @Tag("stax") - void hardenedStaxBlocks() { + void secureStaxBlocks() { AttackTestSupport.assertStaxBlocks(xmlPayload()); } @Test @Tag("trax") - void hardenedTemplatesBlocks() { + void secureTemplatesBlocks() { AttackTestSupport.assertTemplatesBlocks(AttackTestSupport.streamSource(xsltPayload())); } @Test @Tag("trax") - void hardenedTransformerBlocks() { + void secureTransformerBlocks() { AttackTestSupport.assertTransformerBlocks(xmlPayload()); } @Test @Tag("schema") - void hardenedValidatorBlocks() { + void secureValidatorBlocks() { AttackTestSupport.assertValidatorBlocks(xmlPayload()); } @Test @Tag("sax") - void hardenedXmlReaderBlocks() { + void secureXmlReaderBlocks() { AttackTestSupport.assertXmlReaderBlocks(xmlPayload()); }
