Skip to content

Commit 757d8ab

Browse files
committed
PDFBOX-5660: improve test coverage
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1930275 13f79535-47bb-0310-9956-ffa450edef68
1 parent 76bbace commit 757d8ab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

xmpbox/src/test/java/org/apache/xmpbox/parser/DeserializationTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
import org.apache.xmpbox.XMPMetadata;
4141
import org.apache.xmpbox.schema.AdobePDFSchema;
4242
import org.apache.xmpbox.schema.DublinCoreSchema;
43+
import org.apache.xmpbox.schema.PDFAIdentificationSchema;
4344
import org.apache.xmpbox.schema.XMPBasicSchema;
45+
import org.apache.xmpbox.schema.XMPMediaManagementSchema;
4446
import org.apache.xmpbox.schema.XMPSchema;
4547
import org.apache.xmpbox.type.BadFieldValueException;
4648
import org.apache.xmpbox.type.ThumbnailType;
@@ -346,6 +348,13 @@ void testWithAttributesAsProperties() throws XmpParsingException, TransformerExc
346348
XMPBasicSchema basic = metadata.getXMPBasicSchema();
347349
assertNotNull(basic.getCreateDate());
348350

351+
PDFAIdentificationSchema pdfaIdentificationSchema = metadata.getPDFAIdentificationSchema();
352+
assertEquals("B", pdfaIdentificationSchema.getConformance());
353+
assertEquals(1, pdfaIdentificationSchema.getPart());
354+
355+
XMPMediaManagementSchema xmpMediaManagementSchema = metadata.getXMPMediaManagementSchema();
356+
assertEquals("e7127190-445c-11ea-0000-b3bc74086807", xmpMediaManagementSchema.getDocumentID());
357+
349358
checkTransform(metadata, "27499224985683016678197540524065114038595582230834506941950503218519476041225", metadata.getAllSchemas().size());
350359
}
351360
}

0 commit comments

Comments
 (0)