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:
parent
24faa602e0
commit
307fdc61b0
@ -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
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user