Browse Source

Add ignored test for #59780, and specially-crafted test file

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751375 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_15_BETA3
Nick Burch 8 years ago
parent
commit
243f46213a

+ 19
- 0
src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackageCoreProperties.java View File

@@ -271,4 +271,23 @@ public final class TestPackageCoreProperties {
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
}
}

BIN
test-data/openxml4j/OPCCompliance_CoreProperties_AlternateTimezones.docx View File


Loading…
Cancel
Save