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-secure-xml.git
commit 6e3ec49e9e9d0b640dc147e0f6a649148941f116 Author: Gary Gregory <[email protected]> AuthorDate: Tue Sep 1 08:06:25 2026 -0400 Javadoc --- src/main/java/org/apache/commons/xml/secure/SecureSchemaFactory.java | 2 +- .../java/org/apache/commons/xml/secure/SecureTransformerFactory.java | 2 +- src/main/java/org/apache/commons/xml/secure/SecureXPathFactory.java | 2 +- .../java/org/apache/commons/xml/secure/AccessExternalPropertyTest.java | 2 +- .../java/org/apache/commons/xml/secure/AssociatedStylesheetTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/BillionLaughsTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/DenyUnresolvedTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/DoctypeOnlyTest.java | 2 +- .../java/org/apache/commons/xml/secure/EntityResolverFloorTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/ExternalDtdTest.java | 2 +- .../java/org/apache/commons/xml/secure/ExternalGeneralEntityTest.java | 2 +- .../java/org/apache/commons/xml/secure/ExternalParameterEntityTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/NoDoctypeTest.java | 2 +- .../java/org/apache/commons/xml/secure/OverrideDefaultParserTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/ResetSecureTest.java | 2 +- .../java/org/apache/commons/xml/secure/SaxonAlternateFactoryTest.java | 2 +- .../java/org/apache/commons/xml/secure/SaxonXPathExternalCallsTest.java | 2 +- .../java/org/apache/commons/xml/secure/SchemaFactoryLanguageTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/SchemaImportTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/SchemaIncludeTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/SchemaLocationDomTest.java | 2 +- .../java/org/apache/commons/xml/secure/SchemaLocationPropertyTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/SchemaLocationSaxTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/SchemaRedefineTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/TemplatesImportTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/TemplatesIncludeTest.java | 2 +- .../java/org/apache/commons/xml/secure/TransformerDocumentTest.java | 2 +- src/test/java/org/apache/commons/xml/secure/XPathInputSourceTest.java | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/main/java/org/apache/commons/xml/secure/SecureSchemaFactory.java b/src/main/java/org/apache/commons/xml/secure/SecureSchemaFactory.java index 05d471a..ffa0712 100644 --- a/src/main/java/org/apache/commons/xml/secure/SecureSchemaFactory.java +++ b/src/main/java/org/apache/commons/xml/secure/SecureSchemaFactory.java @@ -151,7 +151,7 @@ public Schema newSchema(final Source[] schemas) throws SAXException { } /** - * Checks whether parsers should be instantiated via {@code newInstance()} instead of {@code newDefaultInstance()}. + * Tests whether parsers should be instantiated via {@code newInstance()} instead of {@code newDefaultInstance()}. * * <p>The JDK implementation of {@link SchemaFactory} uses the JDK parsers while {@value SecureSAXParserFactory#OVERRIDE_DEFAULT_PARSER} is unset or * {@code false}.</p> diff --git a/src/main/java/org/apache/commons/xml/secure/SecureTransformerFactory.java b/src/main/java/org/apache/commons/xml/secure/SecureTransformerFactory.java index e31f7ab..7c3b903 100644 --- a/src/main/java/org/apache/commons/xml/secure/SecureTransformerFactory.java +++ b/src/main/java/org/apache/commons/xml/secure/SecureTransformerFactory.java @@ -329,7 +329,7 @@ public XMLFilter newXMLFilter(final Templates templates) throws TransformerConfi } /** - * Checks whether parsers should be instantiated via {@code newInstance()} instead of {@code newDefaultInstance()}. + * Tests whether parsers should be instantiated via {@code newInstance()} instead of {@code newDefaultInstance()}. * * <p>The JDK implementation of {@link TransformerFactory} uses the JDK parsers while {@value SecureSAXParserFactory#OVERRIDE_DEFAULT_PARSER} is unset * or {@code false}.</p> diff --git a/src/main/java/org/apache/commons/xml/secure/SecureXPathFactory.java b/src/main/java/org/apache/commons/xml/secure/SecureXPathFactory.java index 5724d1d..5e24c26 100644 --- a/src/main/java/org/apache/commons/xml/secure/SecureXPathFactory.java +++ b/src/main/java/org/apache/commons/xml/secure/SecureXPathFactory.java @@ -104,7 +104,7 @@ public XPath newXPath() { } /** - * Checks whether parsers should be instantiated via {@code newInstance()} instead of {@code newDefaultInstance()}. + * Tests whether parsers should be instantiated via {@code newInstance()} instead of {@code newDefaultInstance()}. * * <p>The JDK implementation of {@link XPathFactory} uses the JDK parsers while {@value SecureSAXParserFactory#OVERRIDE_DEFAULT_PARSER} is unset or * {@code false}.</p> diff --git a/src/test/java/org/apache/commons/xml/secure/AccessExternalPropertyTest.java b/src/test/java/org/apache/commons/xml/secure/AccessExternalPropertyTest.java index 8025877..0f78d7c 100644 --- a/src/test/java/org/apache/commons/xml/secure/AccessExternalPropertyTest.java +++ b/src/test/java/org/apache/commons/xml/secure/AccessExternalPropertyTest.java @@ -28,7 +28,7 @@ import org.xml.sax.XMLReader; /** - * Checks that loosening a JAXP 1.5 {@code accessExternal*} property to {@code all} on a secured factory does not reopen an external fetch. + * Tests that loosening a JAXP 1.5 {@code accessExternal*} property to {@code all} on a secured factory does not reopen an external fetch. * * <p>The threat model lists these properties under "Settings you may modify": the securing is independent of them, because a resource supplied by a resolver * bypasses their checks and the resolver floor covers every external reference. The whole suite already runs with the {@code javax.xml.accessExternal*} system diff --git a/src/test/java/org/apache/commons/xml/secure/AssociatedStylesheetTest.java b/src/test/java/org/apache/commons/xml/secure/AssociatedStylesheetTest.java index 7f3f070..ce8f7f3 100644 --- a/src/test/java/org/apache/commons/xml/secure/AssociatedStylesheetTest.java +++ b/src/test/java/org/apache/commons/xml/secure/AssociatedStylesheetTest.java @@ -34,7 +34,7 @@ import org.xml.sax.InputSource; /** - * Checks the two untrusted inputs {@code getAssociatedStylesheet} handles: the document it scans, and the href the {@code xml-stylesheet} PI names. + * Tests the two untrusted inputs {@code getAssociatedStylesheet} handles: the document it scans, and the href the {@code xml-stylesheet} PI names. * * <p>The scan parses the prolog, where a {@code DOCTYPE} with an external subset is processed before the root element. Apache Xalan runs it on a reader the * engine provisions itself, ignoring one passed in a {@link SAXSource} (XALANJ-2849), and the JDK's XSLTC did the same before 8u162; the wrapper hands those a diff --git a/src/test/java/org/apache/commons/xml/secure/BillionLaughsTest.java b/src/test/java/org/apache/commons/xml/secure/BillionLaughsTest.java index 1285c54..7865cf0 100644 --- a/src/test/java/org/apache/commons/xml/secure/BillionLaughsTest.java +++ b/src/test/java/org/apache/commons/xml/secure/BillionLaughsTest.java @@ -22,7 +22,7 @@ import org.junit.jupiter.api.Test; /** - * Checks whether parsers reject a Billion Laughs payload (nested entity expansion in the internal DTD subset). + * Tests whether parsers reject a Billion Laughs payload (nested entity expansion in the internal DTD subset). * * <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, diff --git a/src/test/java/org/apache/commons/xml/secure/DenyUnresolvedTest.java b/src/test/java/org/apache/commons/xml/secure/DenyUnresolvedTest.java index 8c4b628..7b1a5c8 100644 --- a/src/test/java/org/apache/commons/xml/secure/DenyUnresolvedTest.java +++ b/src/test/java/org/apache/commons/xml/secure/DenyUnresolvedTest.java @@ -29,7 +29,7 @@ import org.xml.sax.SAXException; /** - * Checks that the resolver floors reject unresolved references when the {@value SecureException#THROW_ON_UNRESOLVED} system property is set. + * Tests that the resolver floors reject unresolved references when the {@value SecureException#THROW_ON_UNRESOLVED} system property is set. * * <p>The floors are exercised directly: with the property set and no caller delegate, each must throw its hook's exception instead of resolving to empty * content. The property is read at resolution time, so setting it around a single test cannot leak into the rest of the suite.</p> diff --git a/src/test/java/org/apache/commons/xml/secure/DoctypeOnlyTest.java b/src/test/java/org/apache/commons/xml/secure/DoctypeOnlyTest.java index 285e4e4..39acda9 100644 --- a/src/test/java/org/apache/commons/xml/secure/DoctypeOnlyTest.java +++ b/src/test/java/org/apache/commons/xml/secure/DoctypeOnlyTest.java @@ -22,7 +22,7 @@ import org.junit.jupiter.api.Test; /** - * Checks that a document carrying a {@code <!DOCTYPE root SYSTEM "...">} declaration but no body references parses successfully through the secure + * Tests that a document carrying a {@code <!DOCTYPE root SYSTEM "...">} declaration but no body references parses successfully through the secure * factories. * * <p>The SYSTEM identifier points at a deliberately bogus URL ({@code http://invalid.example.invalid/...}) under the IANA-reserved {@code .invalid} TLD: any diff --git a/src/test/java/org/apache/commons/xml/secure/EntityResolverFloorTest.java b/src/test/java/org/apache/commons/xml/secure/EntityResolverFloorTest.java index ef4b5be..a3e6641 100644 --- a/src/test/java/org/apache/commons/xml/secure/EntityResolverFloorTest.java +++ b/src/test/java/org/apache/commons/xml/secure/EntityResolverFloorTest.java @@ -55,7 +55,7 @@ import org.xml.sax.XMLReader; /** - * Checks that a caller-supplied resolver cannot remove the secure ignore-all floor on any factory. + * Tests that a caller-supplied resolver cannot remove the secure ignore-all floor on any factory. * * <p>The observable contract on every secure factory is the same: a resource the caller resolves (returns a non-null value) is allowed, but anything the * caller does not resolve is resolved to empty content instead of fetched, so a resolver that resolves nothing leaves the block in place. Most diff --git a/src/test/java/org/apache/commons/xml/secure/ExternalDtdTest.java b/src/test/java/org/apache/commons/xml/secure/ExternalDtdTest.java index f6d5688..54c49b2 100644 --- a/src/test/java/org/apache/commons/xml/secure/ExternalDtdTest.java +++ b/src/test/java/org/apache/commons/xml/secure/ExternalDtdTest.java @@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test; /** - * Checks whether parsers can pull in an external DTD declared via {@code <!DOCTYPE root SYSTEM "...">}. + * Tests whether parsers can pull in an external DTD declared via {@code <!DOCTYPE root SYSTEM "...">}. * * <p>The wrapper points at {@code src/test/resources/leaked/referenced.dtd}, which declares a {@code leaked} entity. Each wrapper body references * {@code &leaked;}, so the entity can only resolve if the DTD is actually fetched: a secure parser resolves the external subset to empty, leaving diff --git a/src/test/java/org/apache/commons/xml/secure/ExternalGeneralEntityTest.java b/src/test/java/org/apache/commons/xml/secure/ExternalGeneralEntityTest.java index bf3ead4..d7619bd 100644 --- a/src/test/java/org/apache/commons/xml/secure/ExternalGeneralEntityTest.java +++ b/src/test/java/org/apache/commons/xml/secure/ExternalGeneralEntityTest.java @@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test; /** - * Checks whether parsers can pull in an external general entity declared inline in the internal subset. + * Tests whether parsers can pull in an external general entity declared inline in the internal subset. * * <p>The wrapper declares {@code <!ENTITY xxe SYSTEM "file:.../referenced.txt">} and uses {@code &xxe;} in the body. The general entity expands to the * content of {@code src/test/resources/leaked/referenced.txt} when the external reference is resolved. A secure parser keeps the entity declared but diff --git a/src/test/java/org/apache/commons/xml/secure/ExternalParameterEntityTest.java b/src/test/java/org/apache/commons/xml/secure/ExternalParameterEntityTest.java index ec61d34..2ccc4e5 100644 --- a/src/test/java/org/apache/commons/xml/secure/ExternalParameterEntityTest.java +++ b/src/test/java/org/apache/commons/xml/secure/ExternalParameterEntityTest.java @@ -35,7 +35,7 @@ import org.xml.sax.helpers.DefaultHandler; /** - * Checks whether parsers can pull in an external DTD via a parameter-entity reference inside the internal subset. + * Tests whether parsers can pull in an external DTD via a parameter-entity reference inside the internal subset. * * <p>The wrapper declares a parameter entity {@code %xxe;} pointing at {@code src/test/resources/leaked/referenced.dtd} and immediately references it in the * internal subset; once expanded, the entity declarations from {@code referenced.dtd} (in particular {@code <!ENTITY leaked "...">}) become part of the diff --git a/src/test/java/org/apache/commons/xml/secure/NoDoctypeTest.java b/src/test/java/org/apache/commons/xml/secure/NoDoctypeTest.java index 3042bef..9876fdb 100644 --- a/src/test/java/org/apache/commons/xml/secure/NoDoctypeTest.java +++ b/src/test/java/org/apache/commons/xml/secure/NoDoctypeTest.java @@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test; /** - * Checks that a plain document without a {@code DOCTYPE} declaration parses cleanly through every secure JAXP surface. + * Tests that a plain document without a {@code DOCTYPE} declaration parses cleanly through every secure JAXP surface. * * <p>This is the realistic 99% case for secure input; the secure contract being verified is "documents without a DOCTYPE parse cleanly through every * JAXP surface" so accidental tightening (for example, a resolver that refuses the synthetic-external-subset hook) is caught.</p> diff --git a/src/test/java/org/apache/commons/xml/secure/OverrideDefaultParserTest.java b/src/test/java/org/apache/commons/xml/secure/OverrideDefaultParserTest.java index eec1217..2c12705 100644 --- a/src/test/java/org/apache/commons/xml/secure/OverrideDefaultParserTest.java +++ b/src/test/java/org/apache/commons/xml/secure/OverrideDefaultParserTest.java @@ -38,7 +38,7 @@ import org.xml.sax.XMLReader; /** - * Checks that {@code jdk.xml.overrideDefaultParser} selects which secure parser family performs the source rewrites on factories that recognize the feature. + * Tests that {@code jdk.xml.overrideDefaultParser} selects which secure parser family performs the source rewrites on factories that recognize the feature. * * <p>The wrapped implementations' internal parsers are never used — the wrappers parse every source themselves — so instead of configuring the delegate the * wrappers read the feature: {@code false} (the JDK's default) pins the platform's built-in parser, {@code true} (or a delegate that does not recognize the diff --git a/src/test/java/org/apache/commons/xml/secure/ResetSecureTest.java b/src/test/java/org/apache/commons/xml/secure/ResetSecureTest.java index b6f2f80..f9e471d 100644 --- a/src/test/java/org/apache/commons/xml/secure/ResetSecureTest.java +++ b/src/test/java/org/apache/commons/xml/secure/ResetSecureTest.java @@ -37,7 +37,7 @@ import org.xml.sax.XMLReader; /** - * Checks that the JAXP {@code reset()} lifecycle methods do not strip the secure floors. + * Tests that the JAXP {@code reset()} lifecycle methods do not strip the secure floors. * * <p>The JAXP reset contract returns an object to its just-created state, and the stock JDK / Xerces implementations take that literally: they re-install * their initial (null) resolvers, silently removing any floor the secure wrappers installed after creation. Each test resets a secure object and asserts diff --git a/src/test/java/org/apache/commons/xml/secure/SaxonAlternateFactoryTest.java b/src/test/java/org/apache/commons/xml/secure/SaxonAlternateFactoryTest.java index 72ed845..8fb0ecd 100644 --- a/src/test/java/org/apache/commons/xml/secure/SaxonAlternateFactoryTest.java +++ b/src/test/java/org/apache/commons/xml/secure/SaxonAlternateFactoryTest.java @@ -31,7 +31,7 @@ import org.junit.jupiter.api.Test; /** - * Checks that Saxon's alternate public {@code TransformerFactory} entry point routes to the same locked-down {@code Configuration} as the registered one. + * Tests that Saxon's alternate public {@code TransformerFactory} entry point routes to the same locked-down {@code Configuration} as the registered one. * * <p>Saxon ships {@code net.sf.saxon.BasicTransformerFactory}, a public subclass of the registered {@code net.sf.saxon.TransformerFactoryImpl}, selectable * through the standard TrAX system property. Recognition by package prefix sends it through {@code SaxonProvider}; a name-based recognition would let it fall diff --git a/src/test/java/org/apache/commons/xml/secure/SaxonXPathExternalCallsTest.java b/src/test/java/org/apache/commons/xml/secure/SaxonXPathExternalCallsTest.java index ddd8fc0..b6ff607 100644 --- a/src/test/java/org/apache/commons/xml/secure/SaxonXPathExternalCallsTest.java +++ b/src/test/java/org/apache/commons/xml/secure/SaxonXPathExternalCallsTest.java @@ -30,7 +30,7 @@ import org.junit.jupiter.api.Test; /** - * Checks whether Saxon's XPath 3.1 URI-fetching functions can pull external resources into the result. + * Tests whether Saxon's XPath 3.1 URI-fetching functions can pull external resources into the result. * * <p>Saxon ships several XPath 3.1 functions that open arbitrary URIs during evaluation. None require a context node; each is triggered purely by the string * URI it receives. They are <em>not</em> classified as extension functions in Saxon's vocabulary, so disabling {@code ALLOW_EXTERNAL_FUNCTIONS} is not enough diff --git a/src/test/java/org/apache/commons/xml/secure/SchemaFactoryLanguageTest.java b/src/test/java/org/apache/commons/xml/secure/SchemaFactoryLanguageTest.java index 8420f21..d89b7cb 100644 --- a/src/test/java/org/apache/commons/xml/secure/SchemaFactoryLanguageTest.java +++ b/src/test/java/org/apache/commons/xml/secure/SchemaFactoryLanguageTest.java @@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test; /** - * Checks that {@link SecureSchemaFactory#newInstance(String)} passes the schema language through to {@link SchemaFactory#newInstance}. + * Tests that {@link SecureSchemaFactory#newInstance(String)} passes the schema language through to {@link SchemaFactory#newInstance}. * * <p>The working W3C XML Schema path is exercised by the whole schema suite; this test covers only the language-selection contract.</p> */ diff --git a/src/test/java/org/apache/commons/xml/secure/SchemaImportTest.java b/src/test/java/org/apache/commons/xml/secure/SchemaImportTest.java index 69d9726..ee12a05 100644 --- a/src/test/java/org/apache/commons/xml/secure/SchemaImportTest.java +++ b/src/test/java/org/apache/commons/xml/secure/SchemaImportTest.java @@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test; /** - * Checks whether {@code xs:import namespace="..." schemaLocation="included.xsd"} of a sibling schema in a different target namespace is resolved at compile + * Tests whether {@code xs:import namespace="..." schemaLocation="included.xsd"} of a sibling schema in a different target namespace is resolved at compile * time. The wrapper references an element defined only in the imported schema, so compilation cannot succeed unless the schemaLocation is fetched. */ @Tag("schema") diff --git a/src/test/java/org/apache/commons/xml/secure/SchemaIncludeTest.java b/src/test/java/org/apache/commons/xml/secure/SchemaIncludeTest.java index f436319..084ff07 100644 --- a/src/test/java/org/apache/commons/xml/secure/SchemaIncludeTest.java +++ b/src/test/java/org/apache/commons/xml/secure/SchemaIncludeTest.java @@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test; /** - * Checks whether {@code xs:include schemaLocation="included.xsd"} of a sibling schema sharing the wrapper's target namespace is resolved at compile time. The + * Tests whether {@code xs:include schemaLocation="included.xsd"} of a sibling schema sharing the wrapper's target namespace is resolved at compile time. The * wrapper references an element defined only in the included schema, so compilation cannot succeed unless the schemaLocation is fetched. */ @Tag("schema") diff --git a/src/test/java/org/apache/commons/xml/secure/SchemaLocationDomTest.java b/src/test/java/org/apache/commons/xml/secure/SchemaLocationDomTest.java index a7dd0f3..c45f49e 100644 --- a/src/test/java/org/apache/commons/xml/secure/SchemaLocationDomTest.java +++ b/src/test/java/org/apache/commons/xml/secure/SchemaLocationDomTest.java @@ -36,7 +36,7 @@ import org.xml.sax.helpers.DefaultHandler; /** - * Checks that a secure {@link DocumentBuilderFactory} performing JAXP 1.2 XSD validation does not fetch an external schema named by an + * Tests that a secure {@link DocumentBuilderFactory} performing JAXP 1.2 XSD validation does not fetch an external schema named by an * {@code xsi:noNamespaceSchemaLocation} hint in the instance document. * * <p>The instance is empty {@code <root/>}; the referenced schema declares a default {@code leak} attribute carrying {@link AttackTestSupport#LEAKED_MARKER}. A diff --git a/src/test/java/org/apache/commons/xml/secure/SchemaLocationPropertyTest.java b/src/test/java/org/apache/commons/xml/secure/SchemaLocationPropertyTest.java index 481ce8f..8614870 100644 --- a/src/test/java/org/apache/commons/xml/secure/SchemaLocationPropertyTest.java +++ b/src/test/java/org/apache/commons/xml/secure/SchemaLocationPropertyTest.java @@ -38,7 +38,7 @@ import org.xml.sax.XMLReader; /** - * Checks that a secure, schema-validating parser does not fetch a schema named only through a Xerces schema-location + * Tests that a secure, schema-validating parser does not fetch a schema named only through a Xerces schema-location * property: {@code external-noNamespaceSchemaLocation} (no-namespace schema) and {@code external-schemaLocation} * (namespaced schema). * diff --git a/src/test/java/org/apache/commons/xml/secure/SchemaLocationSaxTest.java b/src/test/java/org/apache/commons/xml/secure/SchemaLocationSaxTest.java index ed96856..9ef0c40 100644 --- a/src/test/java/org/apache/commons/xml/secure/SchemaLocationSaxTest.java +++ b/src/test/java/org/apache/commons/xml/secure/SchemaLocationSaxTest.java @@ -35,7 +35,7 @@ import org.xml.sax.helpers.DefaultHandler; /** - * Checks that a secure {@link SAXParserFactory} performing JAXP 1.2 XSD validation does not fetch an external schema named by an + * Tests that a secure {@link SAXParserFactory} performing JAXP 1.2 XSD validation does not fetch an external schema named by an * {@code xsi:noNamespaceSchemaLocation} hint in the instance document. * * <p>This is the SAX counterpart of {@link SchemaLocationDomTest}. The instance is empty {@code <root/>}; the referenced schema declares a default {@code leak} diff --git a/src/test/java/org/apache/commons/xml/secure/SchemaRedefineTest.java b/src/test/java/org/apache/commons/xml/secure/SchemaRedefineTest.java index 5fccfbc..6dd47d0 100644 --- a/src/test/java/org/apache/commons/xml/secure/SchemaRedefineTest.java +++ b/src/test/java/org/apache/commons/xml/secure/SchemaRedefineTest.java @@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test; /** - * Checks whether {@code xs:redefine schemaLocation="included.xsd"} that extends a complex type from a sibling schema is resolved at compile time. The wrapper + * Tests whether {@code xs:redefine schemaLocation="included.xsd"} that extends a complex type from a sibling schema is resolved at compile time. The wrapper * cannot compile unless the redefined type is fetched from the sibling schema. */ @Tag("schema") diff --git a/src/test/java/org/apache/commons/xml/secure/TemplatesImportTest.java b/src/test/java/org/apache/commons/xml/secure/TemplatesImportTest.java index eed6d7d..fd91730 100644 --- a/src/test/java/org/apache/commons/xml/secure/TemplatesImportTest.java +++ b/src/test/java/org/apache/commons/xml/secure/TemplatesImportTest.java @@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test; /** - * Checks whether {@code xsl:import} of a sibling stylesheet is resolved at compile time. The wrapper imports a sibling that, if fetched, contributes a + * Tests whether {@code xsl:import} of a sibling stylesheet is resolved at compile time. The wrapper imports a sibling that, if fetched, contributes a * template emitting the leaked marker into the transform output. */ @Tag("trax") diff --git a/src/test/java/org/apache/commons/xml/secure/TemplatesIncludeTest.java b/src/test/java/org/apache/commons/xml/secure/TemplatesIncludeTest.java index 0a015fb..3856085 100644 --- a/src/test/java/org/apache/commons/xml/secure/TemplatesIncludeTest.java +++ b/src/test/java/org/apache/commons/xml/secure/TemplatesIncludeTest.java @@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test; /** - * Checks whether {@code xsl:include} of a sibling stylesheet is resolved at compile time. The wrapper includes a sibling that, if fetched, contributes a + * Tests whether {@code xsl:include} of a sibling stylesheet is resolved at compile time. The wrapper includes a sibling that, if fetched, contributes a * template emitting the leaked marker into the transform output. */ @Tag("trax") diff --git a/src/test/java/org/apache/commons/xml/secure/TransformerDocumentTest.java b/src/test/java/org/apache/commons/xml/secure/TransformerDocumentTest.java index 2bedd0c..d881da2 100644 --- a/src/test/java/org/apache/commons/xml/secure/TransformerDocumentTest.java +++ b/src/test/java/org/apache/commons/xml/secure/TransformerDocumentTest.java @@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test; /** - * Checks whether the XSLT {@code document()} function is resolved at transform time. Compilation succeeds (the function call is just XPath); the leak vector + * Tests whether the XSLT {@code document()} function is resolved at transform time. Compilation succeeds (the function call is just XPath); the leak vector * fires only when {@code Transformer.transform} is called and the function evaluates its URI argument. */ @Tag("trax") diff --git a/src/test/java/org/apache/commons/xml/secure/XPathInputSourceTest.java b/src/test/java/org/apache/commons/xml/secure/XPathInputSourceTest.java index 152d393..9f184f3 100644 --- a/src/test/java/org/apache/commons/xml/secure/XPathInputSourceTest.java +++ b/src/test/java/org/apache/commons/xml/secure/XPathInputSourceTest.java @@ -28,7 +28,7 @@ import org.xml.sax.InputSource; /** - * Checks that the document parse behind {@code XPath.evaluate(String, InputSource)} (and its compiled {@code XPathExpression} counterpart) cannot pull in an + * Tests that the document parse behind {@code XPath.evaluate(String, InputSource)} (and its compiled {@code XPathExpression} counterpart) cannot pull in an * external general entity. * * <p>The stock JDK and Apache Xalan implement the {@link InputSource}-taking {@code evaluate} entry points by provisioning an internal document
