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 b34154624f90a8fa5c95b4438a2496ff180b1061 Author: Gary Gregory <[email protected]> AuthorDate: Fri Aug 28 14:45:11 2026 -0400 Rename test methods. --- .../org/apache/commons/xml/UnsupportedXmlImplementationTest.java | 4 ++-- src/test/java/org/apache/commons/xml/XIncludeTest.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/apache/commons/xml/UnsupportedXmlImplementationTest.java b/src/test/java/org/apache/commons/xml/UnsupportedXmlImplementationTest.java index 1f1ff95..c7e7749 100644 --- a/src/test/java/org/apache/commons/xml/UnsupportedXmlImplementationTest.java +++ b/src/test/java/org/apache/commons/xml/UnsupportedXmlImplementationTest.java @@ -90,7 +90,7 @@ public void setFeature(final String name, final boolean value) throws SAXNotReco } @Test - void hardenRejectsUnsecurableFactory() { + void secureRejectsUnsecurableFactory() { final IllegalStateException thrown = assertThrows( IllegalStateException.class, () -> SecureDocumentBuilderFactory.secure(new FakeDocumentBuilderFactory())); @@ -100,7 +100,7 @@ void hardenRejectsUnsecurableFactory() { } @Test - void hardenRejectsUnsecurableSaxFactory() { + void secureRejectsUnsecurableSaxFactory() { final IllegalStateException thrown = assertThrows( IllegalStateException.class, () -> SecureSAXParserFactory.secure(new FakeSAXParserFactory())); diff --git a/src/test/java/org/apache/commons/xml/XIncludeTest.java b/src/test/java/org/apache/commons/xml/XIncludeTest.java index 1b70973..e279e75 100644 --- a/src/test/java/org/apache/commons/xml/XIncludeTest.java +++ b/src/test/java/org/apache/commons/xml/XIncludeTest.java @@ -327,7 +327,7 @@ void secureSaxWithAllowListResolvesParseXml() throws Exception { @Test @Tag("sax") - void hardenReaderAllowListResolvesParseXml() throws Exception { + void secureReaderAllowListResolvesParseXml() throws Exception { final String input = xiIncludeXml(REFERENCED_XML, "xml"); final SAXParserFactory unhardenedFactory = SAXParserFactory.newInstance(); @@ -342,7 +342,7 @@ void hardenReaderAllowListResolvesParseXml() throws Exception { @Test @Tag("sax") - void hardenReaderBlocksParseText() throws Exception { + void secureReaderBlocksParseText() throws Exception { final String input = xiIncludeXml(REFERENCED_TEXT, "text"); final SAXParserFactory unhardenedFactory = SAXParserFactory.newInstance(); @@ -356,7 +356,7 @@ void hardenReaderBlocksParseText() throws Exception { @Test @Tag("sax") - void hardenReaderBlocksParseXml() throws Exception { + void secureReaderBlocksParseXml() throws Exception { final InputSource input = inputSource(xiIncludeXml(REFERENCED_XML, "xml")); // Reader from an unhardened factory that already has XInclude enabled
