@@ -1496,7 +1496,7 @@ void testPDFBox6131_2() throws IOException, XmpParsingException
14961496 }
14971497
14981498 @ Test
1499- void testPDFBox6133 () throws IOException , XmpParsingException
1499+ void testPDFBox6133 () throws IOException , XmpParsingException , BadFieldValueException
15001500 {
15011501 // Namespace is used both for the schema and the type,
15021502 // and that there are two types with the same namespace
@@ -1508,6 +1508,17 @@ void testPDFBox6133() throws IOException, XmpParsingException
15081508 assertEquals ("[TotalNumberOfPages=RealType:47.0]" , epaSchema .getProperty ("TotalNumberOfPages" ).toString ());
15091509 DefinedStructuredType pub = (DefinedStructuredType ) epaSchema .getProperty ("Publication" );
15101510 assertEquals ("[CountryCode=TextType:EP]" , pub .getProperty ("CountryCode" ).toString ());
1511+ ArrayProperty classification = (ArrayProperty ) epaSchema .getProperty ("Classification" );
1512+ assertEquals (4 , classification .getAllProperties ().size ());
1513+ TextType class3 = (TextType ) classification .getAllProperties ().get (3 );
1514+ assertEquals ("A61K 39/215 20060101ALI20160203BHEP" , class3 .getStringValue ());
1515+ assertEquals ("CORONAVIRUS" , epaSchema .getUnqualifiedLanguagePropertyValue ("Title" , "de" ));
1516+ ArrayProperty documentStructure = (ArrayProperty ) epaSchema .getProperty ("DocumentStructure" );
1517+ assertEquals (5 , documentStructure .getAllProperties ().size ());
1518+ DefinedStructuredType struct4 = (DefinedStructuredType ) documentStructure .getAllProperties ().get (4 );
1519+ assertEquals ("[DocumentSection=TextType:cited-references]" , struct4 .getProperty ("DocumentSection" ).toString ());
1520+ assertEquals ("[StartPage=RealType:47.0]" , struct4 .getProperty ("StartPage" ).toString ());
1521+ assertEquals ("[NumberOfPages=RealType:1.0]" , struct4 .getProperty ("NumberOfPages" ).toString ());
15111522 }
15121523 }
15131524
0 commit comments