You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2025/12/31 08:07:15 UTC
svn commit: r1930999 - pdfbox/trunk/xmpbox/src/test/java/org/apache/xmpbox/xml
Author: tilman
Date: Wed Dec 31 08:07:14 2025
New Revision: 1930999
Log:
PDFBOX-6138: complete test
Modified:
pdfbox/trunk/xmpbox/src/test/java/org/apache/xmpbox/xml/DomXmpParserTest.java
Modified: pdfbox/trunk/xmpbox/src/test/java/org/apache/xmpbox/xml/DomXmpParserTest.java
==============================================================================
--- pdfbox/trunk/xmpbox/src/test/java/org/apache/xmpbox/xml/DomXmpParserTest.java Wed Dec 31 08:07:10 2025 (r1930998)
+++ pdfbox/trunk/xmpbox/src/test/java/org/apache/xmpbox/xml/DomXmpParserTest.java Wed Dec 31 08:07:14 2025 (r1930999)
@@ -1695,7 +1695,7 @@ class DomXmpParserTest
* @throws XmpParsingException
*/
@Test
- void testNamespaceInRoot() throws XmpParsingException
+ void testNamespaceInRoot() throws XmpParsingException, BadFieldValueException
{
String s =
"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n" +
@@ -1731,5 +1731,7 @@ class DomXmpParserTest
"</x:xmpmeta><?xpacket end='w'?>";
final DomXmpParser xmpParser = new DomXmpParser();
XMPMetadata xmp = xmpParser.parse(s.getBytes(StandardCharsets.UTF_8));
+ XMPSchema uaSchema = xmp.getSchema("http://www.aiim.org/pdfua/ns/id/");
+ assertEquals((Integer) 1, uaSchema.getIntegerPropertyValueAsSimple("part"));
}
}