poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r948426 - in /poi/trunk/src: documentation/content/xdocs/status.xml ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java
Date Wed, 26 May 2010 13:56:51 GMT
Author: nick
Date: Wed May 26 13:56:51 2010
New Revision: 948426

URL: http://svn.apache.org/viewvc?rev=948426&view=rev
Log:
Fix bug #49160 - Ensure that CTDigSigBlob is included in poi-ooxml jar

Modified:
    poi/trunk/src/documentation/content/xdocs/status.xml
    poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java

Modified: poi/trunk/src/documentation/content/xdocs/status.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/status.xml?rev=948426&r1=948425&r2=948426&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/status.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/status.xml Wed May 26 13:56:51 2010
@@ -34,6 +34,7 @@
 
     <changes>
         <release version="3.7-SNAPSHOT" date="2010-??-??">
+           <action dev="POI-DEVELOPERS" type="fix">49160 - Ensure that CTDigSigBlob
is included in poi-ooxml jar</action>
            <action dev="POI-DEVELOPERS" type="fix">49189 - Detect w:tab and w:cr entries
in XWPF paragraphs, even when the XSD is silly and maps them to CTEmpty</action>
            <action dev="POI-DEVELOPERS" type="fix">49273 - Correct handling for Font
Character Sets with indicies greater than 127</action>
            <action dev="POI-DEVELOPERS" type="add">49334 - Track the ValueRangeRecords
of charts in HSSFChart, to allow the basic axis operations</action>

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java?rev=948426&r1=948425&r2=948426&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/TestAllExtendedProperties.java Wed May
26 13:56:51 2010
@@ -17,26 +17,12 @@
 
 package org.apache.poi.xwpf;
 
-import java.io.File;
-import java.io.IOException;
-import java.text.ParsePosition;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.TimeZone;
-
 import junit.framework.TestCase;
 
 import org.apache.poi.POIXMLProperties.CoreProperties;
-import org.apache.poi.openxml4j.OpenXML4JTestDataSamples;
-import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
-import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
-import org.apache.poi.openxml4j.opc.OPCPackage;
 import org.apache.poi.openxml4j.opc.PackageProperties;
-import org.apache.poi.openxml4j.util.Nullable;
-import org.apache.poi.util.POILogger;
-import org.apache.poi.util.POILogFactory;
 import org.apache.poi.xwpf.usermodel.XWPFDocument;
-import org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.CTVariant;
+import org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTDigSigBlob;
 import org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTProperties;
 import org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTVectorLpstr;
 import org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTVectorVariant;
@@ -105,5 +91,15 @@ public final class TestAllExtendedProper
 		assertEquals(3,ctProps.getTotalTime());
 		assertEquals(10,ctProps.getWords());
 		
+		// Check the digital signature part
+		// Won't be there in this file, but we
+		//  need to do this check so that the
+		//  appropriate parts end up in the
+		//  smaller ooxml schemas file
+		CTDigSigBlob blob = ctProps.getDigSig();
+		assertNull(blob);
+		
+		blob = CTDigSigBlob.Factory.newInstance();
+		blob.setBlob(new byte [] {2,6,7,2,3,4,5,1,2,3});
 	}
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message