poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1751375 - in /poi/trunk: src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackageCoreProperties.java test-data/openxml4j/OPCCompliance_CoreProperties_AlternateTimezones.docx
Date Mon, 04 Jul 2016 20:26:40 GMT
Author: nick
Date: Mon Jul  4 20:26:40 2016
New Revision: 1751375

URL: http://svn.apache.org/viewvc?rev=1751375&view=rev
Log:
Add ignored test for #59780, and specially-crafted test file

Added:
    poi/trunk/test-data/openxml4j/OPCCompliance_CoreProperties_AlternateTimezones.docx   (with
props)
Modified:
    poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackageCoreProperties.java

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackageCoreProperties.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackageCoreProperties.java?rev=1751375&r1=1751374&r2=1751375&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackageCoreProperties.java
(original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackageCoreProperties.java
Mon Jul  4 20:26:40 2016
@@ -271,4 +271,23 @@ public final class TestPackageCoreProper
         wb.close();
         pkg.close();
     }
+	
+	@Test
+	@Ignore
+	public void testAlternateCorePropertyTimezones() throws Exception {
+        InputStream is = OpenXML4JTestDataSamples.openSampleStream("OPCCompliance_CoreProperties_AlternateTimezones.docx");
+        OPCPackage pkg = OPCPackage.open(is);
+        PackagePropertiesPart props = (PackagePropertiesPart)pkg.getPackageProperties();
+        is.close();
+
+        // Check text properties first
+        assertEquals("Lorem Ipsu", props.getTitleProperty().getValue());
+        assertEquals("Apache POI", props.getCreatorProperty().getValue());
+        
+        // Created at has a +3 timezone and milliseconds
+        //   2006-10-13T18:06:00.1234+03:00
+        
+        // Modified at has a -13 timezone but no milliseconds
+        //   2007-06-20T07:59:00-13:00
+	}
 }

Added: poi/trunk/test-data/openxml4j/OPCCompliance_CoreProperties_AlternateTimezones.docx
URL: http://svn.apache.org/viewvc/poi/trunk/test-data/openxml4j/OPCCompliance_CoreProperties_AlternateTimezones.docx?rev=1751375&view=auto
==============================================================================
Binary file - no diff available.

Propchange: poi/trunk/test-data/openxml4j/OPCCompliance_CoreProperties_AlternateTimezones.docx
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



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


Mime
View raw message