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
This commit is contained in:
Nick Burch 2016-07-04 20:26:40 +00:00
parent 24faa602e0
commit 307fdc61b0
2 changed files with 19 additions and 0 deletions

View File

@ -271,4 +271,23 @@ public final class TestPackageCoreProperties {
wb.close(); wb.close();
pkg.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
}
} }