Skip to content

Commit e9efafb

Browse files
committed
PDFBOX-3882: we can be strict
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1930332 13f79535-47bb-0310-9956-ffa450edef68
1 parent 57df3b5 commit e9efafb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ void testPDFBox5649() throws IOException, XmpParsingException
5353
try (InputStream fis = DomXmpParser.class.getResourceAsStream("/org/apache/xmpbox/xml/PDFBOX-5649.xml"))
5454
{
5555
DomXmpParser dxp = new DomXmpParser();
56-
dxp.setStrictParsing(false);
5756
XMPMetadata xmp = dxp.parse(fis);
5857
Assertions.assertNotNull(xmp);
5958
}
@@ -65,7 +64,6 @@ void testPDFBox5835() throws IOException, XmpParsingException
6564
try (InputStream fis = DomXmpParser.class.getResourceAsStream("/org/apache/xmpbox/xml/PDFBOX-5835.xml"))
6665
{
6766
DomXmpParser dxp = new DomXmpParser();
68-
dxp.setStrictParsing(false);
6967
XMPMetadata xmp = dxp.parse(fis);
7068
Assertions.assertEquals("A", xmp.getPDFAIdentificationSchema().getConformance());
7169
Assertions.assertEquals((Integer) 3, xmp.getPDFAIdentificationSchema().getPart());
@@ -287,7 +285,6 @@ void testPDFBox3882() throws IOException, XmpParsingException
287285
try (InputStream is = DomXmpParser.class.getResourceAsStream("/org/apache/xmpbox/xml/PDFBOX-3882-dematbox.xml"))
288286
{
289287
DomXmpParser dxp = new DomXmpParser();
290-
dxp.setStrictParsing(false);
291288
XMPMetadata xmp = dxp.parse(is);
292289
List<AbstractField> allProperties = xmp.getPDFExtensionSchema().getSchemasProperty().getAllProperties();
293290
Assertions.assertEquals(1, allProperties.size());

0 commit comments

Comments
 (0)