pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1558521 - in /pdfbox/branches/1.8: ./ xmpbox/src/test/java/org/apache/xmpbox/schema/XMPSchemaTest.java
Date Wed, 15 Jan 2014 19:08:21 GMT
Author: lehmi
Date: Wed Jan 15 19:08:21 2014
New Revision: 1558521

URL: http://svn.apache.org/r1558521
Log:
PDFBOX-1685: Update the preflight validation following the compatibility requirement exposed
in the JIRA issue. RDF:About must be the same in all rdf:description (or empty)

Modified:
    pdfbox/branches/1.8/   (props changed)
    pdfbox/branches/1.8/xmpbox/src/test/java/org/apache/xmpbox/schema/XMPSchemaTest.java

Propchange: pdfbox/branches/1.8/
------------------------------------------------------------------------------
  Merged /pdfbox/trunk:r1541714

Modified: pdfbox/branches/1.8/xmpbox/src/test/java/org/apache/xmpbox/schema/XMPSchemaTest.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/xmpbox/src/test/java/org/apache/xmpbox/schema/XMPSchemaTest.java?rev=1558521&r1=1558520&r2=1558521&view=diff
==============================================================================
--- pdfbox/branches/1.8/xmpbox/src/test/java/org/apache/xmpbox/schema/XMPSchemaTest.java (original)
+++ pdfbox/branches/1.8/xmpbox/src/test/java/org/apache/xmpbox/schema/XMPSchemaTest.java Wed
Jan 15 19:08:21 2014
@@ -139,12 +139,14 @@ public class XMPSchemaTest
     @Test
     public void rdfAboutTest()
     {
-        Assert.assertNull(schem.getAboutValue());
+        Assert.assertEquals("",schem.getAboutValue());
         String about = "about";
         schem.setAboutAsSimple(about);
         Assert.assertEquals(about, schem.getAboutValue());
+        schem.setAboutAsSimple("");
+        Assert.assertEquals("",schem.getAboutValue());
         schem.setAboutAsSimple(null);
-        Assert.assertNull(schem.getAboutValue());
+        Assert.assertEquals("",schem.getAboutValue());
     }
 
     @Test(expected = BadFieldValueException.class)



Mime
View raw message