File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
kernel/src/test/java/com/itextpdf/kernel/xmp/impl Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .itextpdf .kernel .xmp .impl ;
2+
3+ import com .itextpdf .kernel .xmp .XMPException ;
4+ import com .itextpdf .kernel .xmp .options .PropertyOptions ;
5+ import com .itextpdf .test .AssertUtil ;
6+ import com .itextpdf .test .ExtendedITextTest ;
7+ import com .itextpdf .test .annotations .type .UnitTest ;
8+ import org .junit .Test ;
9+ import org .junit .experimental .categories .Category ;
10+
11+ @ Category (UnitTest .class )
12+ public class XMPNodeTest extends ExtendedITextTest {
13+ @ Test
14+ public void test () throws XMPException {
15+ XMPNode node = new XMPNode ("rdf:RDF" , "idk" , new PropertyOptions ());
16+ node .addChild (new XMPNode ("rdf:Description" , "idk" , new PropertyOptions ()));
17+ for (Object object : node .getUnmodifiableChildren ()) {
18+ AssertUtil .doesNotThrow (() ->
19+ node .addChild (new XMPNode ("xmp:Authors" , "itext" , new PropertyOptions ().setArrayAlternate (true ))));
20+ }
21+ }
22+ }
Original file line number Diff line number Diff line change 416416 <file path =" com/itextpdf/kernel/xmp/XmlDomWriter.java" />
417417 <file path =" com/itextpdf/kernel/xmp/XMPDateTime.java" />
418418 <file path =" com/itextpdf/kernel/xmp/XMPDateTimeFactory.java" />
419+ <file path =" com/itextpdf/kernel/xmp/impl/XMPNodeTest.java" />
419420 <!-- layout -->
420421 <fileset reason =" XMLReader has different implementation in .NET and Java" >
421422 <file path =" com/itextpdf/layout/hyphenation/PatternParser.java" />
You can’t perform that action at this time.
0 commit comments