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
The following commit(s) were added to refs/heads/main by this push:
new 4a116db Import class instead of using a FQCN.
4a116db is described below
commit 4a116db4f14542fabc692e89f65e827a9563e956
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Sep 1 12:53:26 2026 -0400
Import class instead of using a FQCN.
---
.../org/apache/commons/xml/secure/SchemaContentModelLimitTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/src/test/java/org/apache/commons/xml/secure/SchemaContentModelLimitTest.java
b/src/test/java/org/apache/commons/xml/secure/SchemaContentModelLimitTest.java
index 06de2fe..98d8825 100644
---
a/src/test/java/org/apache/commons/xml/secure/SchemaContentModelLimitTest.java
+++
b/src/test/java/org/apache/commons/xml/secure/SchemaContentModelLimitTest.java
@@ -24,6 +24,7 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
+import org.xml.sax.SAXException;
/**
* Tests that an untrusted schema's content-model expansion is bounded, the
one processing limit no reader can supply.
@@ -71,7 +72,7 @@ private static String maxOccursPayload() {
@Test
void secureSchemaBoundsContentModelExpansion() {
AttackTestSupport.assertParseFails(() ->
compileAndValidate(SecureSchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI)),
- "Schema content-model expansion",
org.xml.sax.SAXException.class);
+ "Schema content-model expansion", SAXException.class);
}
@Test
@@ -89,6 +90,6 @@ void
unconfiguredSchemaWithSecureProcessingBoundsContentModelExpansion() {
final SchemaFactory factory =
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
compileAndValidate(factory);
- }, "Schema content-model expansion", org.xml.sax.SAXException.class);
+ }, "Schema content-model expansion", SAXException.class);
}
}