Skip to content

Commit 7027699

Browse files
committed
PDFBOX-6138: complete test
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1930999 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8e26bd6 commit 7027699

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xmpbox/src/test/java/org/apache/xmpbox/xml/DomXmpParserTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)