File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
xmpbox/src/test/java/org/apache/xmpbox/xml Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1695,7 +1695,7 @@ void testPDFBox6136() throws XmpParsingException
16951695 * @throws XmpParsingException
16961696 */
16971697 @ Test
1698- void testNamespaceInRoot () throws XmpParsingException
1698+ void testNamespaceInRoot () throws XmpParsingException , BadFieldValueException
16991699 {
17001700 String s =
17011701 "<?xml version=\" 1.0\" encoding=\" utf-8\" standalone=\" no\" ?>\n " +
@@ -1731,5 +1731,7 @@ void testNamespaceInRoot() throws XmpParsingException
17311731 "</x:xmpmeta><?xpacket end='w'?>" ;
17321732 final DomXmpParser xmpParser = new DomXmpParser ();
17331733 XMPMetadata xmp = xmpParser .parse (s .getBytes (StandardCharsets .UTF_8 ));
1734+ XMPSchema uaSchema = xmp .getSchema ("http://www.aiim.org/pdfua/ns/id/" );
1735+ assertEquals ((Integer ) 1 , uaSchema .getIntegerPropertyValueAsSimple ("part" ));
17341736 }
17351737}
You can’t perform that action at this time.
0 commit comments