import org.apache.poi.hssf.record.EOFRecord;\r
import org.apache.poi.hssf.record.Record;\r
import org.apache.poi.hssf.record.RecordBase;\r
+import org.apache.poi.hssf.record.UnknownRecord;\r
\r
/**\r
* Manages the all the records associated with a chart sub-stream.<br/>\r
while (rs.peekNextClass() != EOFRecord.class) {\r
if (PageSettingsBlock.isComponentRecord(rs.peekNextSid())) {\r
if (_psBlock != null) {\r
+ if (rs.peekNextSid() == UnknownRecord.HEADER_FOOTER_089C) {\r
+ // test samples: 45538_classic_Footer.xls, 45538_classic_Header.xls\r
+ _psBlock.addLateHeaderFooter(rs.getNext());\r
+ continue;\r
+ }\r
throw new IllegalStateException(\r
"Found more than one PageSettingsBlock in chart sub-stream");\r
}\r
suite.addTest(AllUserModelTests.suite());
suite.addTest(AllRecordTests.suite());
suite.addTest(AllHSSFUtilTests.suite());
-
- if (false) { // TODO - hook this test up
- suite.addTest(new TestSuite(TestExcelExtractor.class));
- }
+ suite.addTest(new TestSuite(TestExcelExtractor.class));
suite.addTest(new TestSuite(TestEventRecordFactory.class));
suite.addTest(new TestSuite(TestModelFactory.class));
suite.addTest(AllSSFormulaTests.suite());
);
}
- public void testWithComments() throws Exception {
+ public void testWithComments() {
ExcelExtractor extractor = createExtractor("SimpleWithComments.xls");
extractor.setIncludeSheetNames(false);
);
}
- public void testWithBlank() throws Exception {
+ public void testWithBlank() {
ExcelExtractor extractor = createExtractor("MissingBits.xls");
String def = extractor.getText();
extractor.setIncludeBlankCells(true);
/**
* Test that we get text from headers and footers
*/
- public void test45538() throws Exception {
+ public void test45538() {
String[] files = {
"45538_classic_Footer.xls", "45538_form_Footer.xls",
"45538_classic_Header.xls", "45538_form_Header.xls"